hikaya-io / hakawati

A collection of UI components
GNU General Public License v3.0
2 stars 1 forks source link

Explore how to refactor input fields/form so they support inline data validation after leaving each field #307

Closed andrewtpham closed 1 year ago

andrewtpham commented 2 years ago

As a rule of thumb, we would like to add inline data validation for all input field types in hakawati so that when they are used in the FE they can be consistent and follow the same logic.

Here is the documentation from ElementUI: https://element.eleme.io/#/en-US/component/form#validation

Reference issue from Dots

validate the fields before clicking the save button so that we are able to catch the no decimal number for this field

image

image

Originally posted by @amosnjoroge in https://github.com/hikaya-io/dots-frontend/issues/1484#issuecomment-1140216819

andrewtpham commented 2 years ago

This is related to the h-form refactor and exposing the validation from el-form: https://github.com/hikaya-io/hakawati/issues/311

andrewtpham commented 2 years ago

This is a duplicate issue to the #333