Skip to content
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

[Bug Report] Autofocus on v-text-field in dialog does not have any effect #8845

Closed
avenmore opened this issue Sep 4, 2019 · 3 comments
Closed
Assignees
Labels
C: VTextField VTextField T: regression Something that used to work but we broke
Milestone

Comments

@avenmore
Copy link

avenmore commented Sep 4, 2019

Environment

Vuetify Version: 2.0.14
Last working version: 2.0.11
Vue Version: 2.6.10
Browsers: Firefox 69.0, Google Chrome
OS: Windows 10

Steps to reproduce

Set autofocus to true on a v-text-field in a dialog.

Expected Behavior

v-text-field is focused when the dialog is shown.

Actual Behavior

The v-text-field is not focused.

Reproduction Link

https://codepen.io/avenmore/pen/LYPOboY

Other comments

I believe this behaviour may have been changed by the commit 970ac5a to fix the dialog focus issue.

@dsseng

This comment has been minimized.

@avenmore
Copy link
Author

avenmore commented Sep 7, 2019

@sh7dm In the pen you provided, for me, on FF69, the text field is focused on first show, but not on subsequent shows (possibly expected behaviour). In ver 2.0.14 it never gets focused.

@dsseng
Copy link
Contributor

dsseng commented Sep 7, 2019

ahh, sorry, that does! subsequent shows mustn't focus it since it had been blurred already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VTextField VTextField T: regression Something that used to work but we broke
Projects
None yet
Development

No branches or pull requests

3 participants