Skip to content

Commit

Permalink
Fix #3070: OverlayPanel respect dismissable prop (#3086)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Jul 20, 2022
1 parent 3a29e8c commit c05f41e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/overlaypanel/OverlayPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const OverlayPanel = React.forwardRef((props, ref) => {
const [bindOverlayListener, unbindOverlayListener] = useOverlayListener({
target: currentTargetRef, overlay: overlayRef, listener: (event, { type, valid }) => {
if (valid) {
(type === 'outside') ? !isPanelClicked.current && hide() : hide();
(type === 'outside') ? props.dismissable && !isPanelClicked.current && hide() : hide();
}

isPanelClicked.current = false;
Expand Down

0 comments on commit c05f41e

Please sign in to comment.