SebastienBtr/Dash-Chat-2

[Bug] Mention User Overlay doesn't dismiss properly and stays on every screen sometimes.

Closed this issue · 1 comments

I was checking out the example app provider by the team and when I try mentions feature there is unexpected behaviour from the overlay, it doesn't get closed properly ans stays through every screen.

It works fine when :

  1. If I select any name from the list
  2. If I type @abc then continue typing.

Fails when:

  1. type @absc and press backspace , then overlay don't get dismised and there's this issue as in screenshot.
  2. unexpectedly sometimes when writing mentioning names not in list or even names from the list (see video for ref )

To Reproduce

Steps to reproduce the behavior:

  1. Compile example app.
  2. go to mentions page
  3. type @anyname not in user list and dismiss keyboard without inputting any other character.
    or
    @(any name not in list or even from list and then continue typing) , try multiple times (see the attached video for ref)

Expected behavior
Overlay should get dismissed when keyboard is dismissed and when no user is selected from the list typing is going on.

Screenshots
Screenshot 2022-09-15 at 6 23 56 PM
Screenshot 2022-09-15 at 6 23 34 PM

simulator screens
WhatsApp Image 2022-09-14 at 5 46 50 PM

This happened a lot while testing (sometimes it happens and sometimes not)

WhatsApp.Video.2022-09-15.at.6.35.24.PM.mp4

Environment

  • OS: [e.g. Mac m1 pro 2021]
  • Device: [e.g. moto edge 20 fusion] | Emulator - pixel 4 a API 31
  • Language Version: [e.g 3.3.0]
  • Software/library Version [dash_chat_2 0.0.14]

Additional context

Suggestion - on mention callback should be called when trigger character is typed, so that we can show all user list.

I could not exactly reproduce it but I improved multiple things and pushed it to the main branch, can you try again using the main branch and let me know if it solved the issue?