Skip to main content

Prevent Full Page Refresh When Clicking Search Results in React UI Kit

When a user searches for a word/message in the chat and clicks on a search result, the entire page refreshes unexpectedly instead of smoothly navigating to the selected message.

This negatively impacts the user experience and breaks the expected navigation flow during message search in React applications using the CometChat UI Kit.

As per the CometChat React Search documentation, onMessageClicked should support custom navigation behavior without triggering a full page reload.

Requirement:

  • Prevent full page refresh when clicking a search result

  • Allow smooth navigation/scrolling to the selected message

  • Ensure onMessageClicked works correctly for custom navigation handling in SPA-based React applications

This enhancement would improve usability and align the behavior with expected React application navigation patterns.

Log in to comment and vote

No comments yet

Be the first to share your thoughts.