mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-01 05:16:10 +01:00
d5834bb5b0
https://github.com/ianstormtaylor/slate/issues/1879 When composition starts and the current selection is not collapsed, the second composition key-down would drop the text wrapping <spans> which resulted on crash in content.updateSelection after composition ends (because it cannot find <span> nodes in DOM). This is a workaround that erases selection as soon as composition starts and preventing <spans> to be dropped.