diff --git a/src/MenuButton.js b/src/MenuButton.js index b86fe02..61be2fd 100644 --- a/src/MenuButton.js +++ b/src/MenuButton.js @@ -41,6 +41,7 @@ export type Props = { onWillOpen?: () => void, onDidOpen?: () => void, onWillClose?: () => void, + type?: string }; export default class MenuButton extends React.Component { @@ -62,10 +63,12 @@ export default class MenuButton extends React.Component { onWillOpen: PropTypes.func, onDidOpen: PropTypes.func, onWillClose: PropTypes.func, + type: PropTypes.string, }; static defaultProps = { positionOptions: {position: 'bottom', hAlign: 'left'}, + type: "button" }; state: State = { @@ -201,6 +204,7 @@ export default class MenuButton extends React.Component { onMouseDown={onMouseDown} disabled={this.props.disabled} title={this.props.title} + type={this.props.type} > {this.props.children}