Skip to content

Support conditionals inside the wrapper #9

@orf

Description

@orf

Heya,
Great addon, thanks for publishing it! I've run into a small issue though. When doing something like this:

{{#active-link}}
   {{#if some_condition}}
      {{a_link}}
   {{else}}
      {{some_other_link}}
   {{/if}}
{{/active-link}}

Then the navigation kind of breaks - sometimes the buttons are in the wrong state and don't update etc. Moving the active-link inside the condition fixes it:

   {{#if some_condition}}
      {{#active-link}}{{a_link}}{{/active-link}}
   {{else}}
     {{#active-link}} {{some_other_link}}{{/active-link}}
   {{/if}}

But it's not quite as nice. Any way you can support the former?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions