How can i hide selected item from list box #7061
Answered
by
reidbarber
RajaTheKing826
asked this question in
Q&A
-
I have an use case, where i have to show my selected item text in input only and i have to remove that item from list box. How can i do this? |
Beta Was this translation helpful? Give feedback.
Answered by
reidbarber
Sep 23, 2024
Replies: 1 comment 1 reply
-
Is this for ComboBox? If so, you could utilize a controlled custom value where you set that value when an item is selected and remove that item from the collection. You would probably want to add that back to the collection when the value gets changed/cleared though. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
RajaTheKing826
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is this for ComboBox? If so, you could utilize a controlled custom value where you set that value when an item is selected and remove that item from the collection. You would probably want to add that back to the collection when the value gets changed/cleared though.