Skip to content

Commit

Permalink
fix: Properly emit ready event on conflicts with the editor API
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr authored and mejo- committed Apr 12, 2023
1 parent bab334f commit 201bce8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ export default {
}

this.$emit('ready')
this.$parent?.$emit('ready')
},

onStateChange(state) {
Expand All @@ -608,8 +609,7 @@ export default {
})
}
this.$emit('ready')
// TODO: remove $parent access
this.$parent.$emit('ready', true)
this.$parent?.$emit('ready', true)
}
if (Object.prototype.hasOwnProperty.call(state, 'dirty')) {
// ignore initial loading and other automated changes
Expand Down

0 comments on commit 201bce8

Please sign in to comment.