From 0fb3a91d9db7a68d3ee052e5800cd36590cacab5 Mon Sep 17 00:00:00 2001 From: Michiel van der Geest Date: Fri, 16 Feb 2024 07:11:04 +0100 Subject: [PATCH] Fixed focus logic to not unfocus the parent when a child receives focus. --- src/focus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/focus.js b/src/focus.js index 125d2185..f0964963 100644 --- a/src/focus.js +++ b/src/focus.js @@ -35,7 +35,7 @@ export default { }, set(component, event) { clearTimeout(setFocusTimeout) - focusedComponent && focusedComponent.unfocus() + focusedComponent && focusedComponent !== component.parent && focusedComponent.unfocus() focusChain.reverse().forEach((cmp) => cmp.unfocus()) if (component !== focusedComponent) { setFocusTimeout = setTimeout(