Skip to content
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

Cannot overwrite hideValidation on fields inside a KtForm #921

Open
RueRivoli opened this issue May 15, 2024 · 0 comments
Open

Cannot overwrite hideValidation on fields inside a KtForm #921

RueRivoli opened this issue May 15, 2024 · 0 comments

Comments

@RueRivoli
Copy link
Collaborator

Describe the bug
When having a hideValidation= true set on a KtForm and a hideValidation= false on a field inside the form with a validator function (to display a warning for instance), the field do not display the validation error (or warning).

To Reproduce
Steps to reproduce the behavior:
Have a

<KtForm hideValidation= true>
       <KtFieldSingleSelect `hideValidation= false` validator="() =>({ text: 'Warning Text Message', type: 'warning' })">
 </KtForm>

Expected behavior
The error (warning) is shown on the field even if hideValidation is true on the form => it overwrites the value

Screenshots
/

Desktop (please complete the following information):

  • OS: [iOS]
  • Browser [chrome]

Smartphone (please complete the following information):
/

Additional context
This could be needed in the catalog where:

  • the customer group value has an impact on the catalog labels options displayed in a KtFieldMultiSelectRemote:
    when the value of the customer group changes, the options changes.
    We thought about showing a warning message below the multiselect to warn that the selection might have changed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant