From 1b012b18cd489ef0237d9f9e8eae84a883510638 Mon Sep 17 00:00:00 2001 From: Alberto Silva Date: Wed, 6 Oct 2021 11:02:51 +0200 Subject: [PATCH] Ensure "data-react-helmet" always renders its value as "true" --- src/HelmetUtils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HelmetUtils.js b/src/HelmetUtils.js index 5d072220..a501b7e7 100644 --- a/src/HelmetUtils.js +++ b/src/HelmetUtils.js @@ -553,7 +553,7 @@ const generateTitleAsReactComponent = (type, title, attributes) => { // assigning into an array to define toString function on it const initProps = { key: title, - [HELMET_ATTRIBUTE]: true + [HELMET_ATTRIBUTE]: "true" }; const props = convertElementAttributestoReactProps(attributes, initProps); @@ -564,7 +564,7 @@ const generateTagsAsReactComponent = (type, tags) => tags.map((tag, i) => { const mappedTag = { key: i, - [HELMET_ATTRIBUTE]: true + [HELMET_ATTRIBUTE]: "true" }; Object.keys(tag).forEach(attribute => {