Skip to content

Editor not showing red outline on validation error #940

@ghost

Description

Flux version

v1.1.2

Livewire version

v3.5.12

What is the problem?

When flux:editor has a validation error, the error is properly displayed (in red) below the editor but the editor is not getting the red outline. Also, when :invalid property is set dynamically, the outline does not show however when hardcoded it works properly.

Image

Code snippets

<flux:editor wire:model="description" toolbar="heading | bold italic underline highlight | bullet ordered ~ undo redo" label="{{ __('Detailed offer description') }}" :invalid="$errors->has('description')" />
$this->validate(['description' => 'required|string']);

How do you expect it to work?

This works as expected (when :invalid is hardcoded).

<flux:editor wire:model="description" toolbar="heading | bold italic underline highlight | bullet ordered ~ undo redo" label="{{ __('Detailed offer description') }}" :invalid="true" />
Image

Please confirm (incomplete submissions will not be addressed)

  • I have provided easy and step-by-step instructions to reproduce the bug.
  • I have provided code samples as text and NOT images.
  • I understand my bug report will be closed if I haven't met the criteria above.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions