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

[8.x] [Index Management] Fix Flashing error banner in Index Template form (#196786) #197279

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

…lastic#196786)

## Summary

Fixes elastic#194751

In `EuiForm`, if the value of `isInvalid` is true, it will render
addressFormErrors tip messages.

And In `step_logistics.tsx`, `isInValid` is setted by
`isInvalid={isSubmitted && !isFormValid}`

But form `submit` method set `isSubmitted` to true first, then validate
form. At this time, `isSubmitted is true` and `isFormValid is
unedfined`. So addressFormErrors shows immediately.

![image](https://github.com/user-attachments/assets/687a359d-ed33-4860-8d96-4543f2ef4898)

**So, maybe when `isSubmitting` is true, addressFormErrors should not be
shown.**

Co-authored-by: Elastic Machine <[email protected]>
(cherry picked from commit f629d96)
@kibanamachine kibanamachine merged commit bb09eb3 into elastic:8.x Oct 22, 2024
24 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
indexManagement 682.5KB 682.5KB +19.0B

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants