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 ' ' tags.
This is only happening with text inside 'button' tags and only with inline editing in Experience Editor.
Screenshot -
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?