Open ericyliu opened 6 years ago
oneOf seems to be order dependent and not working as intended when supplied with arrayOf as one of the arguments
In IE11: oneOf(arrayOf(mapping()), boolean) breaks when field is a boolean
oneOf(arrayOf(mapping()), boolean)
oneOf(boolean, (arrayOf(mapping())) breaks when field is an array
oneOf(boolean, (arrayOf(mapping()))
The error message by validated is: Unable to get property 'split' of undefined or null reference
Unable to get property 'split' of undefined or null reference
Edit Nevermind this happens with all oneOfs, regardless if there is an arrayOf inside or not
oneOf
Hi,
Is it in IE11 only? Do you mind to provide a jsbin or something to reproduce this issue?
oneOf seems to be order dependent and not working as intended when supplied with arrayOf as one of the arguments
In IE11:
oneOf(arrayOf(mapping()), boolean)
breaks when field is a booleanoneOf(boolean, (arrayOf(mapping()))
breaks when field is an arrayThe error message by validated is:
Unable to get property 'split' of undefined or null reference
Edit Nevermind this happens with all
oneOf
s, regardless if there is an arrayOf inside or not