Skip to content

Commit b53e0ab

Browse files
committed
code review
1 parent 1df544e commit b53e0ab

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/ra-ui-materialui/src/field/RichTextField.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ RichTextField.propTypes = {
6868
purifyOptions: PropTypes.any,
6969
};
7070

71+
// We only support the case when sanitize() returns a string
72+
// hence we need to force the RETURN_DOM_FRAGMENT and RETURN_DOM
73+
// options to false
7174
export type PurifyOptions = purify.Config & {
7275
RETURN_DOM_FRAGMENT?: false | undefined;
7376
RETURN_DOM?: false | undefined;

0 commit comments

Comments
 (0)