You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello team,
We are facing the challenge of generating a dynamic placeholder.
When the dynamic ID generates in double-digit we face an issue that no placeholder is recognized on the page.
The below code is generating a dynamic placeholder for me correctly with Next jS <Placeholder name={accordioncolumn-${index + 1}-{*}} rendering={_rendering as ComponentRendering} />
However when index values get to double-digit placeholder does not get generated,
Below is the response from the layout service have the required placeholder.
To Reproduce
Create the placeholder in loop and pass the dynamic value of index more than 9
<Placeholder name={accordioncolumn-${index + 1}-{*}} rendering={_rendering as ComponentRendering} />
Expected Behavior
Placeholder with double-digit should also work and render the added renderings in placeholder
For example
<Placeholder name=accordioncolumn-10-{*} rendering={_rendering as ComponentRendering} />
<Placeholder name=accordioncolumn-11-{*} rendering={_rendering as ComponentRendering} />
Describe the Bug
Hello team,
We are facing the challenge of generating a dynamic placeholder.
When the dynamic ID generates in double-digit we face an issue that no placeholder is recognized on the page.
The below code is generating a dynamic placeholder for me correctly with Next jS
<Placeholder name={
accordioncolumn-${index + 1}-{*}} rendering={_rendering as ComponentRendering} />
However when index values get to double-digit placeholder does not get generated,
Below is the response from the layout service have the required placeholder.
To Reproduce
Create the placeholder in loop and pass the dynamic value of index more than 9
<Placeholder name={
accordioncolumn-${index + 1}-{*}} rendering={_rendering as ComponentRendering} />
Expected Behavior
Placeholder with double-digit should also work and render the added renderings in placeholder
For example
<Placeholder name=
accordioncolumn-10-{*}
rendering={_rendering as ComponentRendering} /><Placeholder name=
accordioncolumn-11-{*}
rendering={_rendering as ComponentRendering} />Possible Fix
in this file https://github.com/Sitecore/jss/blob/dev/packages/sitecore-jss-react/src/components/PlaceholderCommon.tsx
Excluded params to handle double digits as well
Provide environment information
The text was updated successfully, but these errors were encountered: