fix: revert text update in envinput for empty state

This commit is contained in:
nivedin
2024-04-24 14:54:46 +05:30
parent 8fd6b2ffb0
commit 10cb900bd7

View File

@@ -473,21 +473,6 @@ const initView = (el: any) => {
extensions,
}),
})
if (props.placeholderHoverString) {
if (props.modelValue === props.placeholder) {
// clear input
view.value?.dispatch({
changes: {
from: 0,
to: view.value.state.doc.length,
insert: "",
},
})
}
placeholderCompt.reconfigure(placeholderExt(placeholderString.value))
}
}
const getExtensions = (readonly: boolean): Extension => {