Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix MPP-3893: remove onAction from menu *item* level
Our AliasGenerationButton component passed onAction to both useMenu and useMenuItem hooks. react-aria has deprecated onAction handlers from the menu item level in favor of handling actions at the menu level. Previous versions of react-aria reconciled multiple handlers, but 3.43.3 does not. So our handler was being called twice, causing MPP-3893. (Note: the handler for custom masks was being called twice, but since it did not POST to create an address, it did not create 2 masks.)
- Loading branch information