From e6ac92aa4daf50925b547e3028de3ce6ab62ad72 Mon Sep 17 00:00:00 2001 From: ONLY-yours <1349021570@qq.com> Date: Fri, 19 Jan 2024 14:40:13 +0800 Subject: [PATCH] :bug: fix: slove editable keys not work problem --- src/ChatItem/index.tsx | 1 - src/ChatList/ChatListItem.tsx | 9 ++++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/ChatItem/index.tsx b/src/ChatItem/index.tsx index 9ddb7c2e..01ff2097 100644 --- a/src/ChatItem/index.tsx +++ b/src/ChatItem/index.tsx @@ -85,7 +85,6 @@ const ChatItem = memo((props) => { /> ); return chatItemRenderConfig?.contentRender?.(props, dom) || dom; - return; }, [ error, message, diff --git a/src/ChatList/ChatListItem.tsx b/src/ChatList/ChatListItem.tsx index ca5d1a8c..cef9b436 100644 --- a/src/ChatList/ChatListItem.tsx +++ b/src/ChatList/ChatListItem.tsx @@ -234,7 +234,14 @@ const ChatListItem = (props: ChatListItemProps) => { /> ); return dom; - }, [props.content, props.loading, props.id, (item as any).meta, item.updateAt || item.createAt]); + }, [ + props.content, + props.loading, + props.id, + (item as any).meta, + item.updateAt || item.createAt, + editing, + ]); if (RenderItem) return ;