Skip to content

Commit

Permalink
Make use of 'pointer-events' css property to make ChildButton un-clic…
Browse files Browse the repository at this point in the history
…kable when it's not visible
  • Loading branch information
ifndefdeadmau5 committed May 25, 2019
1 parent 432a9c1 commit a5c71f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-floating-button-menu",
"version": "2.0.3",
"version": "2.0.4",
"description": "A Customizable Material floating button menu implementation made with styled-component & react",
"devDependencies": {
"babel-core": "^6.24.1",
Expand Down
1 change: 1 addition & 0 deletions src/ChildButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const Wrapper = styled('li')(
marginLeft: direction === 'right' ? spacing : 0,
marginRight: direction === 'left' ? spacing : 0,
color: iconColor,
pointerEvents: isOpen ? 'auto' : 'none',
}),
);

Expand Down

0 comments on commit a5c71f2

Please sign in to comment.