In wizard display mode, validation errors are displayed differently on "Next" or "Previous" between pages.
pboucher1960 opened this issue · comments
Describe the bug
When rendering a wizard form with components that have some validations (ex: required), moving from one page to the next or moving from one page to the previous won't show the validation error messages with the same layout.
Version/Branch
4.17.0-rc.2
To Reproduce
Steps to reproduce the behavior
- Create a form in wizard mode.
- In the first page, add a component and set it as required.
- Add a second page.
- In the second page, add a component and set it as required.
- In the rendered form, select the first page.
- Click on the "Next" button without entering any value in the required component.
- See the way the error is displayed.
- Select the second page.
- Click on the "Previous" button without entering any value in the required component.
- See the way the error is displayed, which is different from step 7.
Expected behavior
Error messages should always be displayed the same way, leaving a page or entering a page.
Screenshots
See the following sandbox: 6617ebea28302f197dd16829 for a sample with two pages and numeric required components.
@pboucher1960 Thank you for reporting this issue. I can reproduce it and have logged a ticket for the backlog. We are always willing to review any contributions to resolve this issue from the open-source community.
For internal reference: FIO-8261