fix: hr in edited content do not trigger folding (#748)

This commit is contained in:
Stephen Zhou 2022-12-15 18:38:35 +08:00 committed by GitHub
parent 334da5e903
commit d51af7e98a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,7 +65,7 @@ const MemoContent: React.FC<Props> = (props: Props) => {
expandButtonStatus: -1, expandButtonStatus: -1,
}); });
} }
}, [user?.localSetting.enableFoldMemo]); }, [user?.localSetting.enableFoldMemo, content]);
const handleMemoContentClick = async (e: React.MouseEvent) => { const handleMemoContentClick = async (e: React.MouseEvent) => {
if (onMemoContentClick) { if (onMemoContentClick) {