You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It'd be quite nice to have a typeprop on the Button component. Currently, it renders as <button type="button" .../>.
In a form, if there is a <button type="submit", then the onSubmit event is fired if return key is pressed from an input field. This is a handy default behaviour which is worth keeping IMO.
I can make a PR adding a type prop to Button component and ButtonType (?) enum to implement this behaviour.
Thanks!
The text was updated successfully, but these errors were encountered:
It'd be quite nice to have a
type
prop
on theButton
component. Currently, it renders as<button type="button" .../>
.In a
form
, if there is a<button type="submit"
, then theonSubmit
event is fired if return key is pressed from an input field. This is a handy default behaviour which is worth keeping IMO.I can make a PR adding a
type
prop toButton
component andButtonType
(?) enum to implement this behaviour.Thanks!
The text was updated successfully, but these errors were encountered: