-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(list-item): auto-focus works for <select> elements #101
Conversation
Nica! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice follow up to what could have been a UX hick-up otherwise 👏.
/CC @andreasgeier
Do we need any changes regarding https://github.com/bpmn-io/properties-panel/blob/main/src/components/entries/List.js#L156 ? |
Oh, I didn't know about that. So we have the same functionality in two places? |
If possible, shall move that into a single behavior (or hook). |
We do, though the behaviour is a bit different. In a group list, we require to provide an ID of the entry to be focused. So theoretically, this could be a second or third entry of the item. In a nested list, we are not able to tell the ID upfront. Because of that, if you enable the autofocus, it will always be activated on the first input in an item. |
Okay, I will fix it in both places for now. We'll tackle DRYing up that code in a later refactoring. |
11a5d99
to
271dcc1
Compare
Done. @pinussilvestrus or @barmac can you have another look at this? |
Still ✅ from me. |
<select>
elements can now be auto-focused.Closes #100