Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mu-majid committed Jan 13, 2021
1 parent c1eefcb commit 821b17a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components-playground
Submodule components-playground updated from da2392 to 5e1d35
2 changes: 1 addition & 1 deletion jsx-playground
Submodule jsx-playground updated from 1a917c to dc0bd3
2 changes: 1 addition & 1 deletion seasons
Submodule seasons updated from 036d56 to f04f95
3 changes: 2 additions & 1 deletion widgets-hooks/src/components/Dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ const DropDown = ({ options, selected, onSelectChange, label }) => {

const onBodyClick = (event) => {
// if click event is from react component, then don't run this body event manual handler
if (ref.current.contains(event.target)) {
// React v17 update on handlin events
if (ref.current && ref.current.contains(event.target)) {
return;
}
setOpen(false);
Expand Down

0 comments on commit 821b17a

Please sign in to comment.