fix(PageController): lint error

This commit is contained in:
Simon
2026-03-20 16:10:43 +08:00
parent b7b5b6db30
commit 3459836a14

View File

@@ -187,7 +187,9 @@ export async function inputTextElement(element: HTMLElement, text: string) {
selection?.removeAllRanges() selection?.removeAllRanges()
selection?.addRange(range) selection?.addRange(range)
// eslint-disable-next-line @typescript-eslint/no-deprecated
document.execCommand('delete', false) document.execCommand('delete', false)
// eslint-disable-next-line @typescript-eslint/no-deprecated
document.execCommand('insertText', false, text) document.execCommand('insertText', false, text)
} }