@samitouri / QOS-React-2 / commits / b447b40958

Use attributes to set .type

According to the internet, this should work and it appears to work fine on all the browsers I tested.

Ben Alpert committed Oct 23, 2015 at 12:08 UTC b447b409585a673e0259f51a46523b845ae12e25
1 file changed +2 -1
src/renderers/dom/shared/HTMLDOMPropertyConfig.js
+2 -1
@@ -163,7 +163,8 @@ var HTMLDOMPropertyConfig = {
163 tabIndex: null,
164 target: null,
165 title: null,
166 - type: null,
166 + // Setting .type throws on non-<input> tags
167 + type: MUST_USE_ATTRIBUTE,
168 useMap: null,
169 value: MUST_USE_PROPERTY | HAS_SIDE_EFFECTS,
170 width: MUST_USE_ATTRIBUTE,