-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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(VSelects): focus / activation of chips and clearable w/ kb #18838
Conversation
@johnleider this is ready to be reviewed again |
I don't have a good idea atm but I think running that function on every icon render is going to get expensive. @KaelWD, what are your thoughts? |
7cd11a6
to
d0765f1
Compare
@johnleider @KaelWD any update on this one? This change is a prerequisite to #18493 |
I wouldn't expect too much movement on PRs until after Christmas. |
f931c2e
to
748056c
Compare
@johnleider @KaelWD any more thoughts or suggestions on this one? We would really appreciate any help you can give so we can get this issue fixed. Thanks! |
@tmasrat would it work if we just add these properties directly to where vicon is added in the autocomplete component? We know we need them for autocompletes and might be better than trying to make it work for all icons. I'm not at all familiar with how the code is setup so not sure if that would work or not, but just a thought. |
I'm drawing a blank. I'll add it as a task item for next week and spend some more thought time on it. |
@johnleider is there a way to pass down properties to the VIcon component from the Vselect/Vautocomplete? That would limit the fix to those two components only until we figure out a way to fix all icons |
@johnleider I just pushed a new solution. It should fix all components that has VField as a child (VTextArea, VCombobox, VAutocomplete, VSelect...). There are conflicts on the PR but it's not related to the changes I made |
Did you merge a branch into this? |
Yes, I merged the upstream master into it |
My suggestion would be to run |
a363828
to
837aad9
Compare
@johnleider this is ready to be reviewed. Thanks! |
@KaelWD @johnleider any updates on this? |
@vuetifyjs/core-team I'd like everyone to chime in on this please. |
I agree provide/inject seems like a lot. Also this only solves clearable, I think there maybe a different solution that can also cover append/prepend icons, but as an option, not mandatory if hasClick is true. |
Partial fix here 9cbcea9. However, it isn't enough for the keyboard to actually trigger the clear. Pushing those changes to this P.R. |
483b98a
to
d758ead
Compare
@tmasrat can you confirm that this still resolves your issue? I made some changes. |
@johnleider thanks for the update! It works for a case where you tab into the close button on a dropdown menu but it doesn't work for the chips. It tabs into the close icon but it opens the dropdown instead of closing the selected option
|
d758ead
to
0759ba4
Compare
Can you check now? |
@johnleider the clearable chips are working but the other issue came back. The clear button is not clearing the selected value. It's opening the dropdown
|
3rd times the charm. |
Everything works now 🥳 . Thank you @johnleider |
Description
If an icon is clickable, keyboard navigation to the icon should be allowed. If
onClick
is defined, I am setting thetabindex
to 0fixes #18482
Markup: