editor-core
editor-core copied to clipboard
Why does this component warn it's in "controllred mode" [sic]
Someone went to the trouble to add a warning about this when value is supplied, but not explain why the warning exists. Is it bad? Will it format my hard drive or throw a red sock in with my whites? Given the warning text, the latter is far-fetched but plausible.
I have made a PR to remove this, see #19
I looked through the code and I believe it is there because developers might mistakenly provide the value via props and then the field would be uneditable because it is controlled, so a warning was added to let them know. I think that making the component controlled is expected behaviour and that the warning should be removed because it spams the console and looks bad in production.