Skip to content

Instantly share code, notes, and snippets.

@Bachana123
Created May 23, 2020 11:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bachana123/9365345f002c30d25fff9dd58e96105f to your computer and use it in GitHub Desktop.
Save Bachana123/9365345f002c30d25fff9dd58e96105f to your computer and use it in GitHub Desktop.
add focus effect after v-show is true
this.$nextTick(() => {
this.$refs.searchInput.focus();
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment