From a40c594e64c1f8da76e09db673f93dc7a1ac7d6a Mon Sep 17 00:00:00 2001 From: Jean Claveau <1556489+jclaveau@users.noreply.github.com> Date: Fri, 31 Jan 2025 21:30:44 +0100 Subject: [PATCH] fix(ui): tabs move the focus even when click is triggered programmatically --- ui/src/components/tabs/use-tab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/components/tabs/use-tab.js b/ui/src/components/tabs/use-tab.js index 0e3d9782b05..857c4f7a199 100644 --- a/ui/src/components/tabs/use-tab.js +++ b/ui/src/components/tabs/use-tab.js @@ -99,7 +99,7 @@ export default function (props, slots, emit, routeData) { )) function onClick (e, keyboard) { - if (keyboard !== true && blurTargetRef.value !== null) { + if (keyboard !== true && blurTargetRef.value !== null && e.isTrusted === true) { blurTargetRef.value.focus() }