When using Menu in a form, the form is submitted when clicking on a menu item if closeMenuOnClcik is set to false
The problem is a missing type="button".
Looks like this bug has been hiding behind the fact that having it in a form and having closeMenuOnClick set to false is rare.
The onClick callback being called twice when you set closeMenuOnClick set to false and dont give a onClose callback seems to have some have resolved for that instance
When using
Menu
in a form, the form is submitted when clicking on a menu item ifcloseMenuOnClcik
is set to falseThe problem is a missing
type="button"
. Looks like this bug has been hiding behind the fact that having it in a form and havingcloseMenuOnClick
set tofalse
is rare. TheonClick
callback being called twice when you setcloseMenuOnClick
set tofalse
and dont give aonClose
callback seems to have some have resolved for that instance