mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-15 19:54:02 +02:00
onCompositionEnd not need to insert text in firfox (#3202)
This commit is contained in:
@@ -534,7 +534,7 @@ export const Editable = (
|
|||||||
// aren't correct and never fire the "insertFromComposition"
|
// aren't correct and never fire the "insertFromComposition"
|
||||||
// type that we need. So instead, insert whenever a composition
|
// type that we need. So instead, insert whenever a composition
|
||||||
// ends since it will already have been committed to the DOM.
|
// ends since it will already have been committed to the DOM.
|
||||||
if (!IS_SAFARI && event.data) {
|
if (!IS_SAFARI && !IS_FIREFOX && event.data) {
|
||||||
editor.exec({ type: 'insert_text', text: event.data })
|
editor.exec({ type: 'insert_text', text: event.data })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user