Navbar: fixed bug affecting the search-bar's isOpen prop on initial load #1236
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
By creating this pull request you agree to the terms in CONTRIBUTING.md.
https://github.com/Infineon/.github/blob/master/CONTRIBUTING.md
--- DO NOT DELETE ANYTHING ABOVE THIS LINE ---
CONTRIBUTING.md also tells you what to expect in the PR process.
Description
Created a new
getNavComponents()
function, which returns an object containing the siblings of the search-bar.Using this function and de-structuring, {rightSideSlot, leftSideSlot, rightAssignedNodes, leftAssignedNodes, navbarProfile, leftMenuItems, rightMenuItems, topRowWrapper} - constants can be extracted. This reduces code repetition.
And using event emission of
internalState
in search-bar component, to prevent changing state when component is loaded.Related Issue
#1227
📦 Published PR as canary version:
21.9.1--canary.1236.3ce35e16b7e34b687f6448e294b667380db13343.0
✨ Test out this PR locally via:
npm install @infineon/infineon-design-system-stencil@21.9.1--canary.1236.3ce35e16b7e34b687f6448e294b667380db13343.0 # or yarn add @infineon/infineon-design-system-stencil@21.9.1--canary.1236.3ce35e16b7e34b687f6448e294b667380db13343.0