Buttons in buttongroup must be of type "button"  instead of "submit"

On our radar

Buttons in a buttongroup in a mobile app are rendered by default without a type attribute.

By default they behave as buttons with type="submit"

When a user presses the  Enter-key the first option of the buttongroup is selected even when a different option is selected first.

As a  workaround I have added type="button" to every button in a buttongroup but I think this shoud be done by the platform. 

Created on 7 Sep 2017
Comments (1)
9 Sep 2017

I always try to have a default button on every screen, even if it's a dummy one.

You refer the user pressing of Enter key, but also the buttongroup on mobile app - are you talking about a native app or the app on mobile browser?