Skip to content

Commit

Permalink
Prevent default/stop propagation on Tooltip.disclosure click
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyWebb committed Aug 22, 2023
1 parent 7c65f46 commit 64301f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Nri/Ui/Tooltip/V3.elm
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ import Nri.Ui.MediaQuery.V1 as MediaQuery exposing (mobileBreakpoint, narrowMobi
import Nri.Ui.Shadows.V1 as Shadows
import Nri.Ui.UiIcon.V1 as UiIcon
import Nri.Ui.WhenFocusLeaves.V2 as WhenFocusLeaves
import EventExtras as Event


{-| -}
Expand Down Expand Up @@ -940,7 +941,7 @@ viewTooltip_ { trigger, id } tooltip =
, tabForwardAction = msg False
}
]
, [ Events.onClick (msg (not tooltip.isOpen))
, [ Event.onClickPreventDefaultAndStopPropagation (msg (not tooltip.isOpen))
, Key.onKeyDown [ Key.escape (msg False) ]
]
)
Expand Down

0 comments on commit 64301f9

Please sign in to comment.