Command.Item onFocus callback #2040
jnsprnw
started this conversation in
Feature Requests / Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Thanks so much for the library! It's my go-to in many projects!
I'm using the
Commandcomponent as a search for a map. I would like to add the feature that the respective geography gets highlighted when the user focuses aCommand.Itemin the list. Ideally, I could use a callback similar toonSelect.While finding a way to achieve this, I think I found a small semantic error. Given this example:
While the
onSelectcallback is triggered when the user actually selects the item, thedata-selectedattribute is set by the focus/navigation of the user. It should rather be calleddata-focused, but I reckon that would be a breaking change.Beta Was this translation helpful? Give feedback.
All reactions