Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Livewire Reset Form - Custom Select #135

Open
joserick opened this issue Sep 7, 2023 · 1 comment
Open

Livewire Reset Form - Custom Select #135

joserick opened this issue Sep 7, 2023 · 1 comment
Labels
bug Something isn't working stale

Comments

@joserick
Copy link

joserick commented Sep 7, 2023

Laravel Form Components Version

V8.1.4

Laravel Version

v10.21.0

Alpine Version

v3.13.0

Bug description

Hi,

I have a Livewire component which renders a view through a "Modal" where a "Custom Select" is located, this works correctly, but when I send the form, I execute the Livewire "Reset" method, which correctly cleans the form except the "Custom Select", this does not clean the select when the value is empy.

Component Livewire:

   public string $name = "";
   // ...
    public function addNewElement() : void {
        $this->reset('name');
        // $this->show_modal = false;
    }

View:

<x-form-group :label="__('Name')" name="name">
    <x-custom-select name="name" wire:model="name" optional
        :options="$elements" :placeholder="__('Select a element')" required/>
</x-form-group>

Steps to reproduce

No response

Relevant log output

No response

@joserick joserick added the bug Something isn't working label Sep 7, 2023
@github-actions
Copy link
Contributor

This issue is stale because it has been open 21 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the stale label Sep 28, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 5, 2023
@rawilk rawilk reopened this Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

2 participants