fixed clear

This commit is contained in:
PhilReact 2024-11-25 04:23:13 +02:00
parent 25fe950438
commit 5f98174eb1
3 changed files with 5 additions and 4559 deletions

File diff suppressed because it is too large Load Diff

View File

@ -451,7 +451,7 @@ useEffect(() => {
const onReply = useCallback((message)=> {
if(onEditMessage){
editorRef.current.chain().focus().clearContent().run()
clearEditorContent()
}
setReplyMessage(message)
setOnEditMessage(null)
@ -579,7 +579,6 @@ useEffect(() => {
// bottom: '0px',
backgroundColor: "#232428",
minHeight: isMobile ? '0px' : '150px',
maxHeight: isMobile ? 'auto' : '400px',
display: 'flex',
flexDirection: 'column',
overflow: 'hidden',
@ -633,7 +632,8 @@ useEffect(() => {
setReplyMessage(null)
setOnEditMessage(null)
editorRef.current.chain().focus().clearContent().run()
clearEditorContent()
}}
>

View File

@ -650,7 +650,7 @@ const clearEditorContent = () => {
const onReply = useCallback((message)=> {
if(onEditMessage){
editorRef.current.chain().focus().clearContent().run()
clearEditorContent()
}
setReplyMessage(message)
setOnEditMessage(null)
@ -749,7 +749,6 @@ const clearEditorContent = () => {
// bottom: '0px',
backgroundColor: "#232428",
minHeight: isMobile ? '0px' : '150px',
maxHeight: isMobile ? 'auto' : '400px',
display: 'flex',
flexDirection: 'column',
overflow: 'hidden',
@ -804,7 +803,7 @@ const clearEditorContent = () => {
setReplyMessage(null)
setOnEditMessage(null)
editorRef.current.chain().focus().clearContent().run()
clearEditorContent()
}}
>