-
Notifications
You must be signed in to change notification settings - Fork 437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UiTextBox - Allow nulls #253
Comments
Hi @iwan-wijaya, Why not just pass an empty string? |
Hi @JosephusPaye, That's not always an option when using a backend api. Many backend apis are returning nulls if a property is empty, some api standards also consider this as good practice. Imagine fetching data from an api and edit it using a form, if it has nulls in it, it will throw an error, unless you "normalize" the data by converting nulls to empty strings first, which also is not always an option. |
+1, got the same issue =( |
Support for |
Implemented in f5e63d6. |
When I updated package.json and downloaded latest version from next branch, I still has the old version it keen-ui/dist folder. How can I update that? Because now it's not possible to use this fix. Thanks in advance :) |
Released in v1.1.0. |
I think UiTextBox validation is too strict. passing a v-model with the value of
null
will trigger a validation error.I believe
value.required
attribute triggers this. https://github.com/JosephusPaye/Keen-UI/blob/master/src/UiTextbox.vue#L105The text was updated successfully, but these errors were encountered: