Skip to content

Commit afcc695

Browse files
committed
fix: setAttribute value
1 parent d76a0f6 commit afcc695

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/setValue.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ const setValue = (el, value, dispatch) => {
115115
el.srcdoc = value;
116116
} else if (el.tagName === "SCRIPT") {
117117
setScript(el, value);
118+
} else if (el.hasAttribute("value")) {
119+
value = el.setAttribute("value", value);
118120
} else {
119121
if (el.hasAttribute("contenteditable") && el == document.activeElement)
120122
return;

0 commit comments

Comments
 (0)