react-medium-editor
react-medium-editor copied to clipboard
Updating the value does not cause the placeholder to disappear
When the parent element sets the text value, I would expect the value to cause the placeholder to be removed:

placeholder: { text: 'Some text', hideOnClick: true }
Docs: https://github.com/yabwe/medium-editor#placeholder-options
Same issue here, we pre-load the editor with data in some cases:

(in my case there is no click or focus event)
My workaround until this is fixed:
Container div:
<div className={classNames({ 'hide-placeholder': hasText(text.value) })}>
CSS:
.hide-placeholder .medium-editor-placeholder:after {
display: none;
}
@jcalfee, @bassettsj , it works fine, just put placeholder: false to options
issue can be closed, I think