Add IE-specific 'unselectable' attribute
I ended up needing to add this attribute to work around a common IE bug, that clicking on a scrollbar gives focus to the scroll container. I needed to set it as MUST_USE_ATTRIBUTE or the attribute would not be passed through by React successfully. remove trailing spaces
jonchester committed
Mar 25, 2015 at 17:18 UTC
a0265fe8b71a841b82111918407799e42e668d67
1 file changed
+3
-1
src/browser/ui/dom/HTMLDOMPropertyConfig.js
+3
-1
@@ -179,7 +179,9 @@ var HTMLDOMPropertyConfig = {
179
itemID: MUST_USE_ATTRIBUTE,
180
itemRef: MUST_USE_ATTRIBUTE,
181
// property is supported for OpenGraph in meta tags.
182
- property: null
182
+ property: null,
183
+ // IE-only attribute that controls focus behavior
184
+ unselectable: MUST_USE_ATTRIBUTE
185
},
186
DOMAttributeNames: {
187
acceptCharset: 'accept-charset',