filamentphp / filament

A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS.
https://filamentphp.com
MIT License
18.46k stars 2.88k forks source link

RichEditor doesn't clear text after "Create & Create Another" when used in a modal #13143

Closed datboimech closed 4 months ago

datboimech commented 4 months ago

Package

filament/forms

Package Version

v3.2.86

Laravel Version

v11.10.0

Livewire Version

v3.5.0

PHP Version

8.3.8

Problem description

The Form RichEditor doesn't clear the text after "Create & Create Another" is clicked.

Expected behavior

None

Steps to reproduce

This repo will go over the Forms\Components\RichEditor::make('') bug.

This problem only occurs when(the packages of composer and npm are update to the lastest) and the individual has changed the MarkdownEditor to RichEditor and switches the "Create Post" method to the slideover action.

to create the bug

  1. slideover:

  2. Replace MarkdownEditor with RichEditor:

  3. You must comment out the "'create' => Pages\CreatePost::route('/create'),":

(This problem will be set on the post section on the demo website) When using the RichEditor for slideover to create a post; after filling the form out on the demo. When the person clicks the "Create & Create Another" button. The text in RichEditor will stay after the button is clicked.

After: image The text doesn't clear after the "Create & Create Another" button

Last problem to the bug; if you copy and paste the text in the same place then save, it will not save into the post.

Reproduction repository

https://github.com/datboimech/filament-RichEditor-bug

Relevant log output

No response

Donate 💰 to fund this issue

Fund with Polar

danharrin commented 4 months ago

Fixed by #13248, will be available in the next release.