#364 set input type as an attribute, not a property, because CSS
This commit is contained in:
parent
c5939e6fac
commit
5f12b23f37
1 changed files with 1 additions and 1 deletions
|
|
@ -343,7 +343,7 @@ var m = (function app(window, undefined) {
|
|||
//handle cases that are properties (but ignore cases where we should use setAttribute instead)
|
||||
//- list and form are typically used as strings, but are DOM element references in js
|
||||
//- 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")) {
|
||||
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 (node[attrName] != dataAttr) node[attrName] = dataAttr
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue