Skip to content

navigationAction property cannot be enabled after calcite-navigation initializes #14057

@jcfranco

Description

@jcfranco

monday.com sync: #11473732832

Check existing issues

Which Component

N/A, Navigation

Actual Behavior

The navigationAction property is immediately set to false when set after initialization.

Expected Behavior

The property can be toggled like any other boolean property.

Reproduction Sample

https://codepen.io/jcfranco/pen/yyaVYBq?editors=1000

Reproduction Steps

  1. Open the codepen
  2. Notice how the second navigation component never renders the navigation action

Reproduction Version

5.0.2

Relevant Info

This looks to be caused by a combination of the slotchange event handler, which disables the property, firing after the property is set to true and the internal action is rendered.

Regression?

No response

Priority impact

impact - p3 - not time sensitive

Impact

This was causing failures in the following PR, which updates the testing environment (skipped in #13897).

Calcite package

  • @esri/calcite-components
  • @esri/calcite-components-react
  • @esri/calcite-design-tokens
  • @esri/calcite-ui-icons
  • @esri/eslint-plugin-calcite-components

Esri team

Calcite (dev)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Calcite (dev)Issues logged by Calcite developers.bugBug reports for broken functionality. Issues should include a reproduction of the bug.c-navigationIssues that pertain to the calcite-navigation componentcalcite-componentsIssues specific to the @esri/calcite-components package.estimate - 3A day or two of work, likely requires updates to tests.impact - p3 - not time sensitiveUser set priority impact status of p3 - not time sensitiveneeds milestonePlanning workflow - pending milestone assignment, has priority and/or estimate.p - lowIssue is non core or affecting less that 10% of people using the library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions