parent
32b7becd6f
commit
fa04377a51
2 changed files with 3 additions and 2 deletions
|
|
@ -346,7 +346,7 @@ var m = (function app(window, undefined) {
|
|||
//- when using CSS selectors (e.g. `m("[style='']")`), style is used as a string, but it's an object in js
|
||||
else if (attrName in node && !(attrName === "list" || attrName === "style" || attrName === "form" || attrName === "type")) {
|
||||
//#348 don't set the value if not needed otherwise cursor placement breaks in Chrome
|
||||
if (attrName != "input" || node[attrName] !== dataAttr) node[attrName] = dataAttr
|
||||
if (tag !== "input" || node[attrName] !== dataAttr) node[attrName] = dataAttr
|
||||
}
|
||||
else node.setAttribute(attrName, dataAttr)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue