mirror of
https://github.com/WenPai-org/wpmind.git
synced 2025-08-03 02:48:41 +08:00
fixed press space
feature
This commit is contained in:
parent
5193cb54b0
commit
31f67071d3
1 changed files with 3 additions and 2 deletions
|
@ -38,10 +38,11 @@ const withMindAI = createHigherOrderComponent((OriginalComponent) => {
|
|||
const { open, setInsertionPlace } = useDispatch('mind/popup');
|
||||
|
||||
useEffect(() => {
|
||||
// Convert content to string, because it is a RichText value.
|
||||
if (
|
||||
name === 'core/paragraph' &&
|
||||
!previousContent &&
|
||||
content === ' '
|
||||
!`${previousContent || ''}` &&
|
||||
`${content || ''}` === ' '
|
||||
) {
|
||||
open();
|
||||
setInsertionPlace('selected-blocks');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue