You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getIn and hasIn do not work with object properties on IE10/IE11. They always return null even if the property exists.
How to reproduce
Open IE 11 or IE 10 and try this code snippet:
var map = Immutable.Map({
mapKey: Immutable.List([
{
objectKey: 'objectValue'
}
])
})
console.log(map.getIn(['mapKey', 0, 'objectKey'])) // Should print 'objectValue', instead prints null
Expected Behavior
getIn should return the values for the properties in a nested object. It does so on Chrome/Firefox/Safari, but on IE10 and 11 It instead always returns null.
getIn and hasIn both work correctly with Immutable.js collections in IE10 and 11, for example, this works in all browsers:
console.log(map.getIn(['mapKey', 0]).objectKey) // Prints objectValue!
It just doesn't work with object properties. I've tested this on 4.0.0-rc.12 and 4.0.0-rc.10, and the bug exists on both.
The text was updated successfully, but these errors were encountered:
What happened
getIn
andhasIn
do not work with object properties on IE10/IE11. They always return null even if the property exists.How to reproduce
Open IE 11 or IE 10 and try this code snippet:
Expected Behavior
getIn
should return the values for the properties in a nested object. It does so on Chrome/Firefox/Safari, but on IE10 and 11 It instead always returns null.getIn
andhasIn
both work correctly with Immutable.js collections in IE10 and 11, for example, this works in all browsers:It just doesn't work with object properties. I've tested this on
4.0.0-rc.12
and4.0.0-rc.10
, and the bug exists on both.The text was updated successfully, but these errors were encountered: