input box trans
This commit is contained in:
@@ -347,6 +347,9 @@ export class Translator {
|
|||||||
clearInterval(timer);
|
clearInterval(timer);
|
||||||
if (this._inputNodeNames.includes(node.nodeName)) {
|
if (this._inputNodeNames.includes(node.nodeName)) {
|
||||||
node.value = trText;
|
node.value = trText;
|
||||||
|
node.dispatchEvent(
|
||||||
|
new Event("input", { bubbles: true, cancelable: true })
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
node.textContent = trText;
|
node.textContent = trText;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user