-
Notifications
You must be signed in to change notification settings - Fork 40
Open
dubcanada/aire
#1Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When submitting a form using Livewire, Aire does not apply error classes and does not show error messages within the associated input's group. It only shows the {{ Aire::summary() }}
Have you published the Aire config file?
Yes
Have you added custom Aire views?
No
What version does this affect?
- Laravel Version: 8.12
- Aire Version: 2.4
To Reproduce
Steps to reproduce the behavior:
- Create a Livewire component and add validation rules to the component class and a
save()method - Add a form to the component view and add to the form
setAttribute('wire:submit.prevent', 'save') - Add an input field with
setAttribute('wire:model.defer', 'title') - Submit the form without a value in the field
Expected behavior
Expecting an error class in the input group and an error message.
Additional context
When I remove the setAttribute('wire:submit.prevent', 'save') from the form, and handle the request in my Controller, the error class and message work fine.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working