Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

iron-activate event not firing #44

@ghost

Description

I am trying to get default routes working in my application with nested app-route and iron-pages by binding fallback-selector to app-location. It works, but I need this to work across multiple sub-elements of my application, and if all the iron-pages elements update the location, it fritzes the app into an endless loop of location changes.

To make it work, in each sub-element I need to verify whether the correct route is active, and if it isn't I need to cancel the fallback selection on iron-pages. The iron-select event is firing, the iron-activate is not.

    <app-location route="{{route}}"></app-location>

    <app-route
        route="{{route}}"
        pattern="/account/:page"
        active="{{isActiveRoute}}">
    </app-route>

    <iron-pages
      id="pages"
      selected="{{route.path}}"
      attr-for-selected="name"
      fallback-selection="/account/login"
      on-iron-activate="_pageActivate"
      on-iron-select="_pageSelect">

      <pk-account-login name="/account/login"></pk-account-login>

    </iron-pages>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions