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

Focus on startup #128

Open
delasource opened this issue Oct 2, 2019 · 1 comment
Open

Focus on startup #128

delasource opened this issue Oct 2, 2019 · 1 comment

Comments

@delasource
Copy link

delasource commented Oct 2, 2019

I want to set the keyboard focus to a <input ref="email-input" ...> element on my first page that opens, so that a user can start inputing his credentials right away. How do i achive this?

It seems like the Chromium window has no focus and so vue style: this.$refs['email-input'].focus(); (in a watcher) does not work. Even not in a $nextTick funciton block.

@David-Desmaisons
Copy link
Member

Try to set focus progamatically in the C# side for the open window and the Neutronium usercontrol.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants