From 8181fa955b5e4ee1dd5c6806d11732d55ac939df Mon Sep 17 00:00:00 2001 From: Peter Kiss Date: Mon, 22 Jul 2024 18:00:26 +0200 Subject: [PATCH] Add workaround for Safari action menu focusout --- includes/ui/class-ui-elements.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/ui/class-ui-elements.php b/includes/ui/class-ui-elements.php index a2eb860fd..e8f8bd77d 100644 --- a/includes/ui/class-ui-elements.php +++ b/includes/ui/class-ui-elements.php @@ -155,8 +155,11 @@ public static function actions( array $buttons = [], array $links = [] ) { */ public static function actions_menu( $content ) { $label = __( 'Actions', 'wp-job-manager' ); + + $close = esc_attr( 'event.currentTarget.contains(event.relatedTarget) || setTimeout(() => this.open = false, 100 )' ); + return << +