Hacker News new | ask | show | jobs
by BasDirks 3716 days ago
There are a bunch of bugs immediately apparent. Try typing while making a selection with mouse. Is that expected behaviour? nah.
2 comments

What is the "expected behavior" for simultaneously drag-selecting text and typing? And why? And who decided that?

I've found that there are many edge cases in rich content-editing. If your general-purpose editor does something reasonable and constructive with esoteric inputs it's fine.

Draft.js appears to cancel the selection process and drops the typed character wherever the mouse happens to be. Reasonable.

What? This should work properly. If it doesn't, please file a detailed bug with info about your browser.