0

I am using Sitecore 9.3 with JSS.

I have created few components that have buttons. The button labels are editable in sitecore.

The issue is when I edit those button labels inline, e.g, I need to add text - 'Sign In' as button label, then after 'Sign' when I enter space and write 'In', it does not show up. When I check via Inspect Element, it shows that it has added '&nbsp' tags.

This is only happening with text inside 'button' tags and only with inline editing in Experience Editor.

Screenshot -

enter image description here Code - /src/components/componentName/index.js

<Button variant="primary" type="submit">
<Text field={props.fields.buttonlabel} />
</Button>

Can anybody please suggest a resolution for this?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.