Closed neo-arch closed 2 years ago
Seems to be happening only when I add wire:model and hook it up to the component. When it's left on the sample wire:model or one that doesn't exist it works.
@neo-arch Hello, can you give more details about this issue?
The drop down is stuck in open position, I will try to take gif in a bit once I get back on.
Has an error in the console?
Livewire Entangle Error: Livewire property 'model' cannot be found
are you sure about your livewire component has this property? if is a model, you need to add it on rules
Yes, I am just replacing my existing frontend modal with WireUI's.
My property is editing.template, when I use this wire:model here is the error in the console.
public function rules()
{
return [
'editing.title' => ['required', 'min:3', 'max:165'],
'editing.slug' => [Rule::unique('pages', 'slug')->ignore($this->editing)],
'editing.description' => 'required',
'editing.template' => 'required|in:'.collect(Page::TEMPLATES)->keys()->implode(','),
];
}
If I put "model" in wire:model="" or any other fake property that doesn't exist, it loops through the options and I see the expected behavior for the select dropwon, but when it's actually "Wired" to the real property it fails.
Here is an example of it working when it's not wired to a real property. It wont save the change for real, but it is a good demonstration. https://share.getcloudapp.com/xQu6belJ
what's your alpine and livewire version?
"livewire/livewire": "^2.5"
"alpinejs": "^3.2.4",
Just defaults from Jetstream on a new project.
It is so strange, can reproduce this error in a public repository?
I will do this today
The new version is now released. Can you try using the latest version? If the problem persists, reopen the issue
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior: Within a modal created a field with <x-select
Expected behavior For the dropdown to be collapsed.
Screenshots
Desktop (please complete the following information):
Additional context Blade
Layout