vue-advanced-chat
vue-advanced-chat copied to clipboard
Search does not work correctly after page load.
Describe the bug
The Search bar does not filter correctly after page load.
And it seams like that the fetch-more-rooms
event is not fired correctly.
Steps to reproduce
- Go to https://antoine92190.github.io/vue-advanced-chat/
- Paste eg.
xxxxxxnoxxxtextxxxxxxfoundxxxxxxxx
in the search bar - Remove the search text and paste it again
- After around 5 retries the whole conversation list has been loaded and after that the filterring works as expected
Expected behavior
There should be no conversation be visible, because the search text can not be found.
And the whole conversation list should be loaded, because fetch-more-rooms
must be fired the whole time when the end of the conversation list is reached.
Screenshots
Device
- OS: Windows 11
- Browser: Chrome 103, Firefox 102
- Package version: 1.5.5
Additional context
Is it maybe the case that the filtering is not applied when the conversation list has been changed?
Indeed there is an issue there. I think the best would be to add a custom behaviour when searching rooms, so you are able to filter rooms on your side and make the feature more flexible, especially when using pagination.
For me it is OK to have the default implementation of the search bar. We don't have that many conversations, but it would be nice if the search would work as expected.
And optional an implementation for custom searches for other scenarios.