Skip to content

Commit 2269ad8

Browse files
committed
fix: Reset "preventUpdatingModelValue" timing adjustment
1 parent 7172608 commit 2269ad8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ export default defineComponent({
133133
() => props[modelValueProp],
134134
(newModelValue: any) => {
135135
if (preventUpdatingContent.value) {
136-
preventUpdatingContent.value = false
137136
return
138137
}
139138
if (jsonEditor.value) {
@@ -145,7 +144,9 @@ export default defineComponent({
145144
// Only default value can clear the editor
146145
? { text: '' }
147146
: { json: newModelValue },
148-
)
147+
).then(() => {
148+
preventUpdatingModelValue.value = false
149+
})
149150
}
150151
},
151152
{

0 commit comments

Comments
 (0)