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
But I'm using the generated code inside a <div contenteditable="true"> and the caret enters inside de <span ... > instead jumping the emote icon.
What happens is this: <span style="..." class="emoji-mart-emoji">CARRET ENTERS HERE AND ADD TYPED TEXT</span>
The solution to fix this is simple. The <span> generated with the attribute html: true needs to output <span style="..." class="emoji-mart-emoji" CONTENTEDITABLE="FALSE">. Maybe this should be optional.
The text was updated successfully, but these errors were encountered:
I was actually implementing that as you suggested, but I realized that it could leave an empty <span> (the one that has dangerouslySetInnerHTML in your example) and it could be bugish when typing in that span or trying to remove it. Not that I mind adding contenteditable=false, but the bulletproof way to fix your issue would be to add contentEditable={false} to your span with dangerouslySetInnerHTML
This works as expected:
But I'm using the generated code inside a
<div contenteditable="true">
and the caret enters inside de<span ... >
instead jumping the emote icon.What happens is this:
<span style="..." class="emoji-mart-emoji">
CARRET ENTERS HERE AND ADD TYPED TEXT</span>
The solution to fix this is simple. The
<span>
generated with the attributehtml: true
needs to output<span style="..." class="emoji-mart-emoji" CONTENTEDITABLE="FALSE">
. Maybe this should be optional.The text was updated successfully, but these errors were encountered: