Show error if style fails to load and disabled button if input is empty

This commit is contained in:
orangemug
2018-09-24 14:40:17 +01:00
parent c908f7dcd0
commit 004d135d93
3 changed files with 32 additions and 3 deletions

View File

@@ -15,6 +15,7 @@ class Button extends React.Component {
render() {
return <button
onClick={this.props.onClick}
disabled={this.props.disabled}
aria-label={this.props["aria-label"]}
className={classnames("maputnik-button", this.props.className)}
data-wd-key={this.props["data-wd-key"]}