input box trans

This commit is contained in:
Gabe Yuan
2023-09-14 16:35:42 +08:00
parent 72b2f44e32
commit 1e40f81bf7

View File

@@ -347,6 +347,9 @@ export class Translator {
clearInterval(timer);
if (this._inputNodeNames.includes(node.nodeName)) {
node.value = trText;
node.dispatchEvent(
new Event("input", { bubbles: true, cancelable: true })
);
} else {
node.textContent = trText;
}