fix(rsp): NaN was appearing on action-bar - #165
Open
marissahuysentruyt wants to merge 1 commit into
Open
marissahuysentruyt wants to merge 1 commit into
marissahuysentruyt wants to merge 1 commit into
Conversation
|
Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
Commits
|
|
marissahuysentruyt
marked this pull request as ready for review
October 2, 2026 20:37
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Fixes the React Spectrum Action Bar playground preview rendering
NaNinstead of the authored selected-item count,224.Root-level RSP snippet attributes were copied directly into the preview props, bypassing the JSX value parser already used for nested components. As a result,
selectedItemCount="{224}"reached Action Bar as the literal string"{224}"rather than the number224.This change:
buildRspProps()helper for parsing RSP snippet attributes.Screenshots (if applicable)
🚫 Before
https://spectrum.adobe.com/web/rsp/components/action-bar

✅ After
https://action-bar--spectrum-hub--adobe.aem.live/web/rsp/components/action-bar

Type of change
Related issue(s)
Validation steps
To Validate
URL for testing:
https://action-bar--spectrum-hub--adobe.aem.live/web/rsp/components/action-bar
action-barbranch or visit the branch preview.224, notNaN.selectedItemCount={224}.aem up.Accessibility testing checklist
Keyboard
Tabto move through the rendered Action Bar controls.EnterorSpace.Screen reader
224and is not announced asNaN.Device review
Checklist: