diff --git a/src/lib/validators.ts b/src/lib/validators.ts index fc132818..8325224a 100644 --- a/src/lib/validators.ts +++ b/src/lib/validators.ts @@ -21,8 +21,12 @@ export class Validators { && node?.firstChild?.isTextblock && node.firstChild.content.size === 0; + if (!isEmpty) { + return null; + } + return { - required: isEmpty + required: true }; }; }