Adding favourites to AutoComplete #2503
Replies: 4 comments 1 reply
-
Hi @jambc91, |
Beta Was this translation helpful? Give feedback.
-
Hey! thanks for reply! Yes but as you see, whenever you click in that , the modal is closing and the item is being selected and it shouldn't... What i would like to have is an independent button on each item, whenever it triggers, don't call the main function from the autoComplete onSelectChange. |
Beta Was this translation helpful? Give feedback.
-
Hi @jambc91, I believe you might be misusing Please refer below: |
Beta Was this translation helpful? Give feedback.
-
The main issue i found is, if i add a button to the dropdown item, upon clicked, i cannot preventDefault or stopPropagation from the AutoComplete, it simply doesn't work |
Beta Was this translation helpful? Give feedback.
-
I'm currently using the Autocomplete component from NextUI in my project, and I'm facing a challenge with implementing a feature related to a button within each dropdown item.
I'm seeking guidance on how to properly implement a favorite toggle button within each dropdown item while ensuring that it does not interfere with the main action triggered by selecting an item. Any suggestions, code examples, or insights on how to achieve this would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions