diff --git a/CHANGELOG.md b/CHANGELOG.md index 318e862..feb9bb3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- EditInPlace - prevents save when in composition session + ## [1.23.4] - 2024-09-20 ### Fixed diff --git a/src/components/edit-in-place/index.js b/src/components/edit-in-place/index.js index 34d0524..d3cbe40 100644 --- a/src/components/edit-in-place/index.js +++ b/src/components/edit-in-place/index.js @@ -75,7 +75,7 @@ const EditInPlace = forwardRef( const keyDownHandler = useCallback((evt) => { const { ctrlKey, metaKey, keyCode } = evt; // save on enter - if (keyCode === 13) { + if (!evt?.nativeEvent?.isComposing && keyCode === 13) { evt.preventDefault(); editableRef.current.blur(); }