From c84bb4547d90db75289c47aa359a9783570328f6 Mon Sep 17 00:00:00 2001 From: tienifr Date: Mon, 24 Apr 2023 16:24:21 +0700 Subject: [PATCH] executeSecondaryInteractionOnContextMenu: change blur and showPopover order --- src/components/PressableWithSecondaryInteraction/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/PressableWithSecondaryInteraction/index.js b/src/components/PressableWithSecondaryInteraction/index.js index f90a09e06c4d..bc14e92b0baa 100644 --- a/src/components/PressableWithSecondaryInteraction/index.js +++ b/src/components/PressableWithSecondaryInteraction/index.js @@ -35,6 +35,7 @@ class PressableWithSecondaryInteraction extends Component { e.preventDefault(); } + this.props.onSecondaryInteraction(e); /** * This component prevents the tapped element from capturing focus. * We need to blur this element when clicked as it opens modal that implements focus-trapping. @@ -45,7 +46,6 @@ class PressableWithSecondaryInteraction extends Component { if (this.props.withoutFocusOnSecondaryInteraction && this.pressableRef) { this.pressableRef.blur(); } - this.props.onSecondaryInteraction(e); } render() {