Skip to content

Commit

Permalink
Patch to fix issue with react-hot-loader
Browse files Browse the repository at this point in the history
A patch to fix this issue gaearon/react-hot-loader#304
  • Loading branch information
aogaili committed Aug 24, 2019
1 parent 16f5303 commit af60137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Fab.js
Expand Up @@ -41,7 +41,7 @@ export default class Fab extends Component {
onClose: this.handleClose,
};

if (element && element.type === FabButton) {
if (element && element.type === React.createElement(FabButton).type) {
options.onClick = this.handleToggle;
}

Expand Down

0 comments on commit af60137

Please sign in to comment.