awcodes / filament-tiptap-editor

A Rich Text Editor plugin for Filament Forms.
MIT License
261 stars 71 forks source link

Empty state bug #280

Closed movicat closed 8 months ago

movicat commented 8 months ago

Filament Version

v3.1.27

Plugin Version

v3.2.15

PHP Version

PHP 8.2

Problem description

After the first state update the validation works, but then it is not checked. And if a column in the database cannot be null, an error is thrown - "SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'content' cannot be null"

Expected behavior

The empty state must always be validated

Steps to reproduce

https://github.com/awcodes/filament-tiptap-editor/assets/36602392/45c1b1f9-b08a-4bd0-806f-81971af1a287 https://github.com/awcodes/filament-tiptap-editor/assets/36602392/c7b4a672-1806-4ed5-80b0-e88f7c758ec2

Reproduction repository

No response

Relevant log output

No response