techniq / mui-downshift

Thin layer over paypal's downshift to use Material UI visual components
https://techniq.github.io/mui-downshift/
MIT License
92 stars 24 forks source link

Invalid PropType warning on 1.4.0 #76

Closed andrewmclagan closed 5 years ago

andrewmclagan commented 5 years ago
Warning: Invalid arguments supplied to oneOf, expected an array, got 3 arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).

Seeming to come from https://github.com/techniq/mui-downshift/blob/781fbb2b75614fd331ce7bef894d7e5a0a1f96da/src/index.js#L110 that was updated with this version.

PR coming

andrewmclagan commented 5 years ago

see PR https://github.com/techniq/mui-downshift/pull/77

cvanem commented 5 years ago

@andrewmclagan Thanks for catching that. I don't use PropTypes much :)

techniq commented 5 years ago

Fixed in 1.4.1. Thanks for the PR.