Skip to content

Commit

Permalink
fix: duplicate root instances (vuejs#711)
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum authored Jul 26, 2018
1 parent 5e6c310 commit 43210a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/backend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ function scan () {
}
let instance = node.__vue__
if (instance) {
instance = instance.$root
if (rootInstances.indexOf(instance.$root) === -1) {
instance = instance.$root
}
if (instance._isFragment) {
inFragment = true
currentFragment = instance
Expand Down

0 comments on commit 43210a2

Please sign in to comment.