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] VDialog doesn't get focus on first open #8220

Closed
avele opened this issue Jul 31, 2019 · 5 comments · Fixed by #8716
Closed

[Bug Report] VDialog doesn't get focus on first open #8220

avele opened this issue Jul 31, 2019 · 5 comments · Fixed by #8716
Assignees
Labels
C: VDialog VDialog has workaround S: has PR The issue has a pending Pull Request T: bug Functionality that does not work as intended/expected

Comments

@avele
Copy link

avele commented Jul 31, 2019

Environment

Vuetify Version: 2.0.3
Vue Version: 2.6.10
Browsers: Chrome 76.0.3809.87
OS: Windows 10

Steps to reproduce

  1. Open reproduction link
  2. Click "Click me" button
  3. Press "esc" - nothing happens, dialog doesn't close
  4. Click outside of dialog - dialog closes
  5. Click "Click me" button again
  6. Now press "esc" - it works, dialog closes

Expected Behavior

Step 3 should close dialog

Actual Behavior

Dialog doesn't close

Reproduction Link

https://codepen.io/anon/pen/aeWxbp

@ghost ghost added the S: triage label Jul 31, 2019
@jacekkarczmarczyk jacekkarczmarczyk added C: VDialog VDialog T: bug Functionality that does not work as intended/expected has workaround and removed S: triage labels Jul 31, 2019
@jacekkarczmarczyk
Copy link
Member

Workaround https://codepen.io/anon/pen/BXZyba

@avele
Copy link
Author

avele commented Aug 2, 2019

Workaround https://codepen.io/anon/pen/BXZyba

Yeah adding eager prop works.

Looks like without it VDialog component tries to focus its content before it was rendered.

@avenmore
Copy link

avenmore commented Sep 4, 2019

Fix is all very well, but now autofocus on v-text-field is no longer working.

@jacekkarczmarczyk
Copy link
Member

@avenmore please create a new issue with reproduction if there's a bug

@avenmore
Copy link

avenmore commented Sep 4, 2019

@jacekkarczmarczyk Created issue #8845

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VDialog VDialog has workaround S: has PR The issue has a pending Pull Request T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants