Skip to content

Commit

Permalink
[ButtonBase] Fix regression in 3.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
alexplumb committed Oct 17, 2018
1 parent 11244bf commit 40c82b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/material-ui/src/ButtonBase/ButtonBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class ButtonBase extends React.Component {
};

static getDerivedStateFromProps(nextProps, prevState) {
if (typeof prevState.focusVisible === 'undefined') {
if (!prevState || typeof prevState.focusVisible === 'undefined') {
return {
focusVisible: false,
lastDisabled: nextProps.disabled,
Expand Down

0 comments on commit 40c82b8

Please sign in to comment.