Skip to content

Instantly share code, notes, and snippets.

@Farmatique
Created February 27, 2020 11:27
Show Gist options
  • Select an option

  • Save Farmatique/fe6bcd495f9f79e330d6bcda7d0c5464 to your computer and use it in GitHub Desktop.

Select an option

Save Farmatique/fe6bcd495f9f79e330d6bcda7d0c5464 to your computer and use it in GitHub Desktop.
Vue.js issue with handling event on v-html rendering
When trying to catch event that fires on rendering the v-html you should be aware of that its actually renders html ONLY AFTER ANIMATION/TRANSTION is finished. So, thats why you need to create setTimeout. Just try to omit <transition> and see that it catch rendering correctly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment