From ac42ec106ff259e1d44515e5fb3b5236559ac713 Mon Sep 17 00:00:00 2001 From: Olusola Olawale Date: Tue, 6 Feb 2024 21:45:51 +0100 Subject: [PATCH] fix(Link): check `disabled` prop before navigating (#1321) --- src/runtime/components/elements/Link.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/components/elements/Link.vue b/src/runtime/components/elements/Link.vue index 7687fea9fb..501b70cded 100644 --- a/src/runtime/components/elements/Link.vue +++ b/src/runtime/components/elements/Link.vue @@ -23,7 +23,7 @@ :rel="rel" :target="target" :class="active !== undefined ? (active ? activeClass : inactiveClass) : resolveLinkClass(route, $route, { isActive, isExactActive })" - @click="(e) => !isExternal && navigate(e)" + @click="(e) => (!isExternal && !disabled) && navigate(e)" >