Skip to content

fix for: "Uncaught TypeError: Failed to execute 'observe' on...

Alexander Kolesnikov requested to merge fix/UDropdown.vue-observe-undefined into master

fixed Uncaught TypeError: Failed to execute 'observe' on 'MutationObserver': parameter 1 is not of type 'Node'

Occures on slow client computers.

Reason: setTimeout with 0 schedule the callback to be run asynchronously, after the shortest possible delay. during this time this.visible might become = false and value of this.$refs.dropdown will be undefined because of v-if on dropdown

Edited by Pavel Mashliakovskiy

Merge request reports