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
19.3k stars 2.96k forks source link

MarkdownEditor duplicates on repeater reorder #7829

Closed njxqlus closed 11 months ago

njxqlus commented 1 year ago

Package

filament/filament

Package Version

v3.0.24

Laravel Version

10.19.0

Livewire Version

v3.0.0-beta.9

PHP Version

8.1

Problem description

MarkdownEditor content is duplicated when reordering parent Repeater both using buttons or drag&drop.

Screenshot 2023-08-17 at 11 38 01

https://github.com/filamentphp/filament/assets/15072672/6c6fe5b8-f45f-4e51-9e7d-359345f896d5


Please use markdown-editor-bug branch in reproduction repository.

In continuation #7485

Expected behavior

Same as RichEditor - no content/editor duplication on repeater reorder

Steps to reproduce

return $form
    ->schema([
        Forms\Components\Repeater::make('foo')->schema([
            Forms\Components\MarkdownEditor::make('bar')
        ])->reorderableWithButtons()
    ]);

Reproduction repository

https://github.com/njxqlus/filamentphp-bug-report/tree/markdown-editor-bug

Relevant log output

No response

njxqlus commented 1 year ago

Same with the Builder

zircuitz commented 1 year ago

Is there a fix for this on the horizon? Not complaining, but it just gets a little frustrating to use.

RobertsG commented 11 months ago

Any updates on this?

njxqlus commented 11 months ago

Any updates on this?

Fixed in 3.1