[WEB-1689] fix: command enter submits the form (#4986)
* fix: command enter submits the form * fix: build errors
This commit is contained in:
parent
936c21d65e
commit
e78263e01f
12 changed files with 46 additions and 41 deletions
|
|
@ -92,7 +92,11 @@ export const LiteTextEditor = React.forwardRef<EditorRefApi, LiteTextEditorWrapp
|
|||
}
|
||||
}}
|
||||
handleAccessChange={handleAccessChange}
|
||||
handleSubmit={(e) => rest.onEnterKeyPress?.(e)}
|
||||
handleSubmit={() => {
|
||||
if (isMutableRefObject<EditorRefApi>(ref)) {
|
||||
rest.onEnterKeyPress?.(ref.current?.getHTML() ?? "");
|
||||
}
|
||||
}}
|
||||
isCommentEmpty={isEmpty}
|
||||
isSubmitting={isSubmitting}
|
||||
showAccessSpecifier={showAccessSpecifier}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue