Articles
Latest
More
Newsletter Sponsorship Discord About
Sign up for our Newsletter
The video for this lesson is currently being updated, please read the transcript instead.
Advanced Vue 2 - Vuex & SSR > Lesson 35

Focus directive, Enter keyup is create

Another improvement we can make for our form is, to make it so that the input is focused

when we open the form, you'll notice up you have to actually click into the input to get focused there.

That's kind of annoying, because when you click the form I want to type start typing

straight away but I can't until I move my mouse over and then click.

We can achieve that with a with a custom directive actually.

Let's just locally register a new directive


Back to course page

Click to load comments...

Articles
  • Latest
Newsletter
  • Join
  • Sponsorship
More
  • Discord
  • Vue.js jobs
  • About

Vue.js Developers © 2021. View our privacy policy .

  • RSS
  • |
  • Atom