tju-yxq opened a new issue, #3985:
URL: https://github.com/apache/rocketmq-dashboard/issues/3985

   ## Problem
   
   On the Topic page, the search term is normalized for the server query but 
not for the client-side row filter:
   
   - `loadTopicPage` sends `search: searchText.trim()` to `/topics/page`.
   - `visibleTopics` still receives the raw `searchText` and filters rows with 
`topic.name.toLowerCase().includes(searchText.toLowerCase())`.
   
   When the search input contains leading or trailing spaces (a common result 
of pasting), the server returns the topics that match the trimmed term, but the 
local filter rejects every returned row because no topic name contains the 
padded string. The table becomes empty even though matching topics exist.
   
   ## Reproduction
   
   1. Open the Topic page for any instance with topics.
   2. Paste ` orders ` (with spaces) into the search box and press Enter.
   3. The server query uses `orders`, but the table shows no rows.
   
   ## Expected behavior
   
   The trimmed search term should be used consistently by the server query, the 
client-side filter, and the export, so matching rows remain visible.
   
   ## Additional context
   
   The same defect class was previously fixed for the consumer-group search 
(#911); the Topic page still has the trim mismatch.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to