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
I'm attempting to create a validation error message (The number is not valid. Click <a>here</a> to learn more on how to register) using formatMessage but am experiencing a bug(?) where the space before the anchor tag is getting deleted. So rather than the desired text being "The number is not valid. Click here to learn more on how to register", I am getting "The number is not valid. Click_here_ to learn more on how to register".
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm attempting to create a validation error message (
The number is not valid. Click <a>here</a> to learn more on how to register
) using formatMessage but am experiencing a bug(?) where the space before the anchor tag is getting deleted. So rather than the desired text being "The number is not valid. Click here to learn more on how to register", I am getting "The number is not valid. Click_here_ to learn more on how to register".This is an example of the code I am working with:
return ( ... ... <TextInput validationMessage={formatMessage({id: 'VALIDATION_ERROR"}, {a: link(URL_TO_LINK)}/> }
Where
VALIDATION_ERROR
isThe number is not valid. Click <a>here</a> to learn more on how to register
.Has anyone else experienced this or have any possible solutions?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions