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
Create a Button component with a label and type="button"
Expected Result
The <button /> element should have type="button"
Actual Result
The attribute is set on the div around it where it's useless, so the button's onClick is triggered when pressing enter in some form field that submits the form (default type for a button is submit)
Bug Report
Steps
Create a
Button
component with alabel
andtype="button"
Expected Result
The
<button />
element should havetype="button"
Actual Result
The attribute is set on the div around it where it's useless, so the button's onClick is triggered when pressing enter in some form field that submits the form (default type for a button is submit)
Version
2.0.4
Testcase
https://codesandbox.io/s/semantic-ui-react-forked-jx0wi
The text was updated successfully, but these errors were encountered: