Anyone created dropdowns / select components in toolbars, how did you manage the cursor state? #1243
Answered
by
philippkuehn
deep-c
asked this question in
Questions & Help
-
Hi, Just wondering if anyone had used https://headlessui.dev/react/listbox or another custom select component. How did you manage the cursor state? Did you do some work around toggling read-only state and keeping track of the last position or was there an easier method? Keen to know how to manage this in this library. |
Beta Was this translation helpful? Give feedback.
Answered by
philippkuehn
Apr 28, 2021
Replies: 1 comment 1 reply
-
Just use the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
deep-c
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just use the
focus()
command to restore your selection.