mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[GH-ISSUE #1048] Form input items are hijacking autocomplete dropdown selection #757
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#757
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @albertywu on GitHub (Oct 30, 2024).
Original GitHub issue: https://github.com/rivo/tview/issues/1048
I'm running into an issue where when an autocomplete dropdown item overlaps with another form field input item, the form input item takes click precedence and "hijacks" the click. See example below:
^ Example adapted from the autocomplete demo here
Is there a way to specify that the autocomplete dropdown items have higher "zIndex" than other items in the form so this doesn't happen? If not, what is the recommended approach for handling this scenario?
@rivo commented on GitHub (Nov 3, 2024):
This was a bug. The latest commit should fix this.
@albertywu commented on GitHub (Nov 4, 2024):
Thanks for the super fast response @rivo. Unfortunately commit 8808192 didn't fix the issue. I don't think it's about when the autocomplete gets rendered (it's getting rendered fine). The issue is that mouse-clicking on an autocomplete item that overlaps with a form field doesn't work because the form field steals the click (see original gif).