Altinn / app-frontend-react

Altinn application React frontend
BSD 3-Clause "New" or "Revised" License
18 stars 31 forks source link

Navigationbar component does not trigger "calculatePageOrder" #306

Closed sondre-ma closed 6 days ago

sondre-ma commented 2 years ago

Description of the bug

Adding "calculatePageOrder" to triggers in settings.json, or directly onto the navigationbar component has no effect, even though the trigger works as intended on the navigation buttons component.

Steps To Reproduce

  1. Implement dynamic tracks.
  2. Add "calculatePageOrder" to triggers in settings.json or directly onto the navigationbar component.
  3. Launch app and try triggering dynamic tracks through navigation bar.
  4. The form will simply go to the page you clicked on, without activating dynamic tracks.

Additional Information

No response

andreas-didriksen commented 1 year ago

Dynamic expressions will solve this issue. "calculatePageOrder" is still supported but in time it will be replaced with dynamic expressions.

bjosttveit commented 6 days ago

Closing as the tracks feature was removed in v4 and this is not an issue when hiding pages using expressions