Merge branch 'main' into next

This commit is contained in:
nocobase[bot] 2025-01-08 08:11:15 +00:00
commit 62e82150a1

View File

@ -47,7 +47,13 @@ export const RichText = connect(
modules={modules} modules={modules}
formats={formats} formats={formats}
value={resultValue} value={resultValue}
onChange={onChange} onChange={(value) => {
if (value === '<p><br></p>') {
onChange(undefined);
} else {
onChange(value);
}
}}
readOnly={disabled} readOnly={disabled}
/>, />,
); );