Closed ashleyryan closed 2 years ago
π @ashleyryan,
Thank you,
π€ Clarity Release Bot
If you find time some parts of the code of the navigation could be moved to controllers.
Yeah I had the same thought when I was looking at the code. Might be a good exercise to get some more lit experience.
Commit message fixed. The slotChange event notifies you if content has been added/removed from the slot. So instead of only syncing the props, and setting tabIndex on firstUpdate or when the component updates, it will do it everytime a new nav item is added (or removed, which is unnecessary, but not really a problem)
:tada: This PR is included in version 6.1.2 :tada:
The release is available on:
v6.1.2
Your semantic-release bot :package::rocket:
Hi there π, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed PRs after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary.
fixes #155 #82
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Previously, expanded state was only shared with nav items on the initial render, or when the parent navigation component had updates. Asynchronously added nav items were treated as collapses, instead of having their parent state synced
Issue Number: #155 #82
What is the new behavior?
the slotchange event was added to the slot to detect when new items are added
Does this PR introduce a breaking change?
Other information