Box text field focuses only when clicked on input
See original GitHub issueSteps to reproduce
Create <v-text-field box>
as in codepen, try to focus the input by clicking the field outside the blue area
Versions
0.15.7
What is expected ?
Clicking the box field in any place (with pointer cursor) should focus the input
What is actually happening ?
Input focuses only when the blue area is clicked (although the hover area is bigger)
Reproduction Link
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
HTML input fields does not get focus when clicked
If I move the cursor over the input field I can see the text cursor, but when I click it the field does...
Read more >How to Make a Text Field Automatically Active (Set Focus)
When a text field is active it is said to be focused. Setting the focus means making the field active so the cursor...
Read more >HTMLElement.focus() - Web APIs | MDN
The HTMLElement.focus() method sets focus on the specified element, if it can be focused. The focused element is the element that will ...
Read more >Set Input Focus with HTML5 autofocus | SamanthaMing.com
Set Input Focus with HTML5 autofocus. Use the autofocus attribute on form elements to automatically focus the input field when the page loads....
Read more >3 ways to autofocus an input in React that ALMOST always work!
This input is focus ed, but no text is selected. If the user starts typing, the text they type will go into that...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Textareas can be fixed using this css:
The other inputs can also be fixed in a similar way, extending their click area to the label’s (transformed) position, e.g.:
Edit: unfortunately, this doesn’t look good when scrolling, because most browsers (excluding Firefox) will let the scrolled text enter the padding. Firefox clips it, so it looks good there.
Or with something like this: https://github.com/nkovacs/vuetify/commit/9d0c164a3718521b43fb8dffd32fe8981934eff1
We could probably go back and forth, I suggest coming to the community: https://community.vuetifyjs.com and continue the conversation there.