FilamentF
Filament3y ago
1 reply
Vladimir

Browser back button creates duplicated MarkDownEdit0r on page

I have a markdown editor on page within a wizard.
If i start filing up the form, actually just open a form, and then navigate to another page via wire:navigate, then click Back button on browser, i get MarkDown editor duplicated.

Here is code of relevant page:
return [
            Wizard::make([
                Wizard\Step::make('General')
                    ->icon('heroicon-m-pencil')
                    ->description('Have a good one')
                    ->schema([
                        TextInput::make('title')
                            ->helperText('Job title')
                            ->hintIcon('heroicon-o-information-circle')
                            ->required()
                            ->rules('min:5')
                            ->maxLength(255),
                        MarkdownEditor::make('description')
                            ->disableToolbarButtons(['attachFiles'])
                            ->helperText('The better you describe the better candidate will come')
                            ->required(),
                    ]),

Attaching a short video🐞
Just discovere, not happens with RIchEditor.
Was this page helpful?