Closed dbalatero closed 6 years ago
@sanniassin looking at the docs for this:
https://www.npmjs.com/package/warning
It looks like it will fire the warning if the first argument is false
. This is really confusing, I would assume warning(true, "a warning")
would fire, but I guess they went with double-negatives.
Yes, it's "warn if condition is falsy". Can you provide a demo please?
Nevermind, it's a bug in react-input-mask. I got confused by falsy condition in warning too :)
Released 2.0.0-beta.4
When I render InputMask, I get this warning:
However, this property is not being passed in anywhere in my codebase. I think there is something wrong with the
warning
library, because when I dropped into a debugger, I was able to make a warning fire even when the first argument wasfalse
:warning(false, "my warning")
This is happening on the latest 2.0 beta. Thanks!