andreypopp / andreypopp/validated

oneOf with arrayOf in IE11

Open
#22 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
91
Forks
14
PR merge metrics
No merged PRs in 30d

Description

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(boolean, (arrayOf(mapping()))` breaks when field is an array

The 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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.