Closed ksherman closed 4 years ago
little quirk, but you have to use @mouseup.stop
since that's the event that triggers the select. Ideally the component would know that you are clicking something that is not a suggestion.
Sorry for the delay, was working on a few other tasks.
This worked just fine for me! Thanks for the quick reply 🎉
@darrenjennings quick follow up to this, how do I "close" the suggestions after clicking on that before-suggestions element? would it be a custom function for shouldRenderSuggestions
?
Ignore me! Silly me, on clicking that before-suggestion element, just clear out the suggestions! 🤦♂
When using the
before-suggestions slot
, it seems that click events are still triggering @selected events?I'm essentially trying to add an option at the top of the list of suggestions I want to handle a little differently than the actual suggestion options. I've tried
@click
modifiersstop
andprevent
and doesn't seem to supercede the other events.I've looked through the component but couldn't find an obvious way to work around this yet.
vue-autosuggest
version: latestnode
version: 12npm
(oryarn
) version: 6.11