From af60137cdf3abe3c845cc38021f876e6dcc334af Mon Sep 17 00:00:00 2001 From: Ali Ogaili Date: Sat, 24 Aug 2019 21:16:48 +0400 Subject: [PATCH] Patch to fix issue with react-hot-loader A patch to fix this issue https://github.com/gaearon/react-hot-loader/issues/304 --- src/components/Fab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Fab.js b/src/components/Fab.js index cd81dfe..8285136 100644 --- a/src/components/Fab.js +++ b/src/components/Fab.js @@ -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; }