MenuOption
's disabled
Property Does Not Prevent Clicking When <router-link />
or <a />
is Used
#6815
Open
5 tasks done
Labels
untriaged
need to sort
Describe the bug
When the
disabled
property is applied to a menu option rendered withRouterLink
(as demonstrated in the documentation here), the appearance of the menu option changes correctly but it remains clickable.This behaviour appears to be inconsistent. If
RouterLink
is not involved, both theicon
andlabel
requireonClick
to function, and the margin area cannot be clicked. It seems thatn-menu
is treatingRouterLink
differently, which we believe constitutes a bug and should be addressed.Steps to reproduce
disabled
attribute totrue
for the menu options.(by the way, the sandbox link in that part of documentation doesn't work because the routes are unset)
Link to minimal reproduction
https://codesandbox.io/p/sandbox/focused-grothendieck-hynjrq
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: