Skip to content

Commit

Permalink
Merge pull request #8 from ramyakrishnai/added-reset-type
Browse files Browse the repository at this point in the history
added reset type to fix console warning
  • Loading branch information
wpalani authored Mar 9, 2024
2 parents bbd9018 + 86467c5 commit 6f1ce99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elements/button/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const Button = forwardRef( ( {
const propTypes = {
children: PropTypes.node.isRequired,
as: PropTypes.elementType,
type: PropTypes.oneOf( [ "button", "submit" ] ),
type: PropTypes.oneOf( [ "button", "submit", "reset" ] ),
variant: PropTypes.oneOf( keys( classNameMap.variant ) ),
size: PropTypes.oneOf( keys( classNameMap.size ) ),
isLoading: PropTypes.bool,
Expand Down

0 comments on commit 6f1ce99

Please sign in to comment.