googlearchive / more-routing

144 stars 30 forks source link

core-selector's 'excludedLocalNames' breaks routing #23

Closed vguillou closed 7 years ago

vguillou commented 9 years ago

If you use the 'excludedLocalNames' attribute of the core-selector (typically to insert separators in a menu), routing is then broken.

Here is an example :

<more-route-selector>
   <core-menu excludedLocalNames="div" on-core-select="{{menuItemSelectedHandler}}">
      <div class="separator">Simple routing</div>
      <core-item icon="home" label="Home" route="home">
         <a href="{{urlFor('home')}}"><paper-ripple fit></paper-ripple></a>
      </core-item>
      <core-item icon="book" label="Page A" route="page-a">
         <a href="{{urlFor('page-a')}}"><paper-ripple fit></paper-ripple></a>
      </core-item>
      <div class="separator">Nested page</div>
      <core-item icon="work" label="Page B" route="page-b">
         <a href="{{urlFor('page-b')}}"><paper-ripple fit></paper-ripple></a>
      </core-item>
   </core-menu>
</more-route-selector>