fix(PageController): lint error
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user