Skip to content

Commit

Permalink
Fix API Key flyout double submit (elastic#167468)
Browse files Browse the repository at this point in the history
## Summary

Closes elastic#163314


## Fixes

- Removed an extra EuiPortal that was not needed as EuiFlyout adds a
Portal
- Inverted control of the form by wrapping the flyout content in the
form. Prevents multiple submits by using traditional form controls and
button type as submit.


## Release Notes:

- Fixes issue with multiple API keys being created if the form is
submitted using the enter key fired multiple times in quick succession.
elastic#163314

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
2 people authored and dej611 committed Oct 17, 2023
1 parent 4216bee commit ddd546a
Show file tree
Hide file tree
Showing 2 changed files with 444 additions and 511 deletions.
104 changes: 0 additions & 104 deletions x-pack/plugins/security/public/components/form_flyout.tsx

This file was deleted.

Loading

0 comments on commit ddd546a

Please sign in to comment.