fix: environments being cringe :)

This commit is contained in:
Andrew Bastin
2021-08-21 10:38:35 +05:30
parent 77d876d443
commit c00c8f249e
3 changed files with 26 additions and 18 deletions

View File

@@ -124,8 +124,10 @@ export default defineComponent({
processHighlights() {
if (!this.highlightEnabled) {
this.htmlOutput = this.internalValue
this.$emit("input", this.internalValue)
this.$emit("change", this.internalValue)
if (this.intervalTree !== this.value) {
this.$emit("input", this.internalValue)
this.$emit("change", this.internalValue)
}
return
}
@@ -223,8 +225,10 @@ export default defineComponent({
this.renderTippy()
})
this.$emit("input", this.internalValue)
this.$emit("change", this.internalValue)
if (this.internalValue !== this.value) {
this.$emit("input", this.internalValue)
this.$emit("change", this.internalValue)
}
},
renderTippy() {
const tippable = document.querySelectorAll("[v-tippy]")