Invalid prop: type check failed for prop "active". Expected Boolean, got String with value "true"

602 views Asked by At

I try to set active prop on navbar in bootstrap vue if the current url have name of the menu in it.

 <b-navbar-nav>
          <b-nav-item :href="menu.link"
           v-for="menu in menus" 
           :key="menu.name" :active="urlActive.indexOf(menu.name)>0 ? true : false"
          >
          {{trans.get('back.'+menu.name)}}
          </b-nav-item>
</b-navbar-nav>

if my current url is /dashboard or /company it doesnt show any warning but if i go to create or edit

i.g /company/create or /company/edit it show the warning. Any help is appricaite

0

There are 0 answers