From 760ddcab21c4adb9e14164b0ca96db8ac4f14a1e Mon Sep 17 00:00:00 2001 From: Chiara Mooney <34109996+chiaramooney@users.noreply.github.com> Date: Thu, 20 Jul 2023 10:40:49 -0700 Subject: [PATCH] Save State --- .../Fabric/Composition/CompositionDynamicAutomationProvider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnext/Microsoft.ReactNative/Fabric/Composition/CompositionDynamicAutomationProvider.cpp b/vnext/Microsoft.ReactNative/Fabric/Composition/CompositionDynamicAutomationProvider.cpp index 9ecc84638e7..da973a9a583 100644 --- a/vnext/Microsoft.ReactNative/Fabric/Composition/CompositionDynamicAutomationProvider.cpp +++ b/vnext/Microsoft.ReactNative/Fabric/Composition/CompositionDynamicAutomationProvider.cpp @@ -139,7 +139,7 @@ HRESULT __stdcall CompositionDynamicAutomationProvider::GetPatternProvider(PATTE auto accessibilityRole = props->accessibilityRole; // Invoke control pattern is used to support controls that do not maintain state // when activated but rather initiate or perform a single, unambiguous action. - if (patternId == UIA_InvokePatternId && accessibilityRole == "" || accessibilityRole == "button" || + if (patternId == UIA_InvokePatternId && accessibilityRole == "button" || accessibilityRole == "imagebutton" || accessibilityRole == "link" || accessibilityRole == "splitbutton" || (accessibilityRole == "menuitem" && props->onAccessibilityTap) || (accessibilityRole == "treeitem" && props->onAccessibilityTap)) { *pRetVal = static_cast(this);