TabMenu error when no route matches one of the menu paths #416
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
The TabMenu creates a JavaScript warning in the dev console when no path matches any of the provided
to
paths in the menu items. The error happens inupdateInkBar
inDomHandler.getWidth
because the passedtabHeader
/el
parameter is undefined.primevue/src/components/tabmenu/TabMenu.vue
Line 80 in d624e17
The parameter is undefined because
findActiveTabIndex
on the line before returned null, since no active route could be found.I would recommend to at least catch the null value in there and do something like this:
The text was updated successfully, but these errors were encountered: