From 38029def26486f1739c1f6d9f68f9e99f63e8d09 Mon Sep 17 00:00:00 2001 From: Ruslan Matkovskyi Date: Thu, 26 Oct 2023 14:51:53 +0200 Subject: [PATCH] #597453: [sitecore-jss-react] fixed rendering with two and more dynamic placeholders --- .../sitecore-jss-react/src/components/PlaceholderCommon.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/sitecore-jss-react/src/components/PlaceholderCommon.tsx b/packages/sitecore-jss-react/src/components/PlaceholderCommon.tsx index a7f2bd0390..fbd7c831e5 100644 --- a/packages/sitecore-jss-react/src/components/PlaceholderCommon.tsx +++ b/packages/sitecore-jss-react/src/components/PlaceholderCommon.tsx @@ -136,7 +136,8 @@ export class PlaceholderCommon extends React.Compone Object.keys(rendering.placeholders).forEach((placeholder) => { if ( placeholder.indexOf('{*}') !== -1 && - !EXCLUDE_PLACEHOLDERS_RENDER.some((pattern) => name.search(pattern) !== -1) + !EXCLUDE_PLACEHOLDERS_RENDER.some((pattern) => name.search(pattern) !== -1) && + name.replace(/[^a-zA-Z]*/gi, '') === placeholder.replace(/[^a-zA-Z]*/gi, '') ) { rendering.placeholders[name] = rendering.placeholders[placeholder]; delete rendering.placeholders[placeholder];