From 0084a6da7ce69842826a1ee058ef5a6692c0813f Mon Sep 17 00:00:00 2001 From: Randall Rouse Date: Fri, 10 May 2024 12:38:19 -0700 Subject: [PATCH] feat: added event to onPressBackgroud parameter --- src/tooltip.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tooltip.js b/src/tooltip.js index 3098692..e3122fb 100644 --- a/src/tooltip.js +++ b/src/tooltip.js @@ -412,9 +412,9 @@ class Tooltip extends Component { const hasChildren = React.Children.count(this.props.children) > 0; - const onPressBackground = () => { + const onPressBackground = (event) => { if (this.props.closeOnBackgroundInteraction) { - this.props.onClose(); + this.props.onClose(event); } }; @@ -426,7 +426,7 @@ class Tooltip extends Component { return ( onPressBackground(event)} accessible={this.props.accessible} >