Browse Source

🐛 loose button type propTypes for custom usage

close #13915

ref #1308
pull/13941/head
afc163 6 years ago
parent
commit
380416e92a
No known key found for this signature in database GPG Key ID: 738F973FCE5C6B48
  1. 2
      components/button/button.tsx

2
components/button/button.tsx

@ -86,7 +86,7 @@ export default class Button extends React.Component<ButtonProps, any> {
};
static propTypes = {
type: PropTypes.oneOf(ButtonTypes),
type: PropTypes.string,
shape: PropTypes.oneOf(ButtonShapes),
size: PropTypes.oneOf(ButtonSizes),
htmlType: PropTypes.oneOf(ButtonHTMLTypes),

Loading…
Cancel
Save