Replies: 5 comments 2 replies
-
Due to A11y, I removed it.
If you want it, try to add |
Beta Was this translation helpful? Give feedback.
-
Hello! I would like to Is this need important enought to modify preparefocus? May be can search for an autofocus node if exists. Thank you! |
Beta Was this translation helpful? Give feedback.
-
I have a table where you can inline edit values by clicking on the cell. This turns the value in the cell into an Input component that can be changed by the user and then saved. For accessibility, I have it such that a user can tab through the cells, and upon clicking enter, the cell will turn into the Input component. However, I have no way to focus the input when clicking the cell. It doesn't seem very intuitive for people using screen readers. My understanding is that ally does not require totally banning the ability to focus an input element. So long as the focusing doesn't cause an inconvenient jump like you mentioned, it is acceptable. In fact in my case, not having the ability to focus the input element makes it much less intuitive. And like Maddin2Code mentioned, there are lots of other use cases where we might want to get a reference to input. What do you think? |
Beta Was this translation helpful? Give feedback.
-
I need to focus a component programmatically when the user presses a keybinding (like the good old "press / to search"). I can't find a direct way to do that except using $$.root, is this intended? Or did I miss anything? |
Beta Was this translation helpful? Give feedback.
-
Here's another use case for input focusing: we are building an inventory management system, and the input method is a scanner. The way a scanner works is it just inputs the text of the barcode you scan (e.g. 1234567) and hits enter. Without input focusing this is a lot more difficult to accomplish. Please correct if I am wrong, but autofocus only seems to work on load, rather than successive calls. It is well understood that input focusing can have some accessibility considerations, but it does not mean that use of input focusing is inherently anti-accessibility. |
Beta Was this translation helpful? Give feedback.
-
Hello,
How to focus a <Input> by default on form load? I've found #33 which refers to docs, but it seems they are not there anymore.
Is there a way to refer to the internal's <Input> <input> node so that I can call node.focus()?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions