bmcmahen / react-wysiwyg

retain some control over contenteditable input
169 stars 37 forks source link

Steal focus ? #25

Closed amigrave closed 9 years ago

amigrave commented 9 years ago

Hi,

Is there a way to prevent the ContentEditable component to steal focus on rendering ?

bmcmahen commented 9 years ago

Hmm, I haven't noticed this behaviour myself. Can you give me some more details or example code?

amigrave commented 9 years ago

This happens when you change the content editable's content from another component but I guess this use case is out of concern. In my case I usedshouldComponentUpdate in order to prevent this behavior.