fix: rich text field not clearing data on submission (#6486)

This commit is contained in:
Katherine 2025-03-17 16:21:10 +08:00 committed by GitHub
parent dbb079ba18
commit 62c06c7ac3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,7 +45,7 @@ export const RichText = connect(
value={resultValue}
onChange={(value) => {
if (value === '<p><br></p>') {
onChange(undefined);
onChange('');
} else {
onChange(value);
}