From 87d445b4e4468cf6c17787f47dd875ab8a95598a Mon Sep 17 00:00:00 2001 From: Satyajit Sahoo Date: Tue, 3 Dec 2019 20:33:41 +0100 Subject: [PATCH] fix: disable pointerEvents on header when not focused --- packages/stack/src/views/Header/HeaderContainer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/stack/src/views/Header/HeaderContainer.tsx b/packages/stack/src/views/Header/HeaderContainer.tsx index 93cf10de..d8919074 100644 --- a/packages/stack/src/views/Header/HeaderContainer.tsx +++ b/packages/stack/src/views/Header/HeaderContainer.tsx @@ -114,7 +114,7 @@ export default function HeaderContainer({ }) : undefined } - pointerEvents="box-none" + pointerEvents={isFocused ? 'box-none' : 'none'} accessibilityElementsHidden={!isFocused} importantForAccessibility={ isFocused ? 'auto' : 'no-hide-descendants'