[Dropdown] Fixed option for search dropdown #896
-
Help WantedI need some help to create an option in the dropdown that (i) is fixed in the last position, (ii) is not filtered while searching and (iii) keeps the keyboard navigation to select. The following gif shows exactly the behavior that I’m looking for (it was implemented using select2 library): ProblemHere is what I got so far:
And this is how it's looking like: I also tried another approach by creating an item with a On this gif I always tried to select the add option with the keybord keys. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 1 reply
-
can you recreate your last example in jsfiddle? Here is a fomantic sandbox to fork |
Beta Was this translation helpful? Give feedback.
-
Here it is: https://jsfiddle.net/5ehm67cp/ If you have any more questions about the problem let me know! |
Beta Was this translation helpful? Give feedback.
-
i don't think fomantic Dropdown API can do this right now so i would handle it in a custom event |
Beta Was this translation helpful? Give feedback.
-
hello @vincenccee did my fiddle work out for you ? do you need any more help? if not please close the issue :) |
Beta Was this translation helpful? Give feedback.
-
yes, it is working! thanks for the help @maidzen 😄 |
Beta Was this translation helpful? Give feedback.
-
Meanwhile this functionality is inbuild the nightly 2.9.0 using |
Beta Was this translation helpful? Give feedback.
i don't think fomantic Dropdown API can do this right now so i would handle it in a custom event
https://jsfiddle.net/a51zLeof/