Closed inoc603 closed 7 years ago
I have the same problem, I think keen-ui shouldn't include its dependencies in dist package.
My solution for now is a copy of keen-ui.js with a new custom validation rule. You still need the same custom rule registered with Validator instance if you want to call validation (check, passess etc)
Good suggestion, I will look into this for v1.0.
Fixed in v1.0. Validation is now done externally from outside the components (meaning Keen UI no longer bundles validator-js
), and set using the invalid
and error
props.
I found validatorjs has a nice custom validation function here, but I've failed to use it with ui-textbox.
I got the following error:
It seems that keen-ui uses the validatorjs packed with itself, maybe that's why my registration didn't work? Is there anyway to solve this?
THX