rawilk / laravel-form-components

Form components built for Tailwind & Livewire.
https://randallwilk.dev/docs/laravel-form-components
MIT License
386 stars 42 forks source link

Support for get the old value of a switch toggle without livewire #41

Closed luilliarcec closed 2 years ago

luilliarcec commented 2 years ago

1️⃣ Is this something that is wanted/needed? Did you create an issue / discussion about it first?

A problem was not created, but it is something that is needed.

2️⃣ Does it contain multiple, unrelated changes? Please separate the PRs out.

It is a single related change.

3️⃣ Does it include tests, if possible? (Not a deal-breaker, just a nice-to-have)

No

4️⃣ Please include a thorough description of the improvement and reasons why it's useful.

The component was not getting the old value when submitting a form and getting errors (speaking outside of livewire), what was added was support for that functionality.

5️⃣ Thanks for contributing! 🙌

rawilk commented 2 years ago

Thanks for taking the time to create a PR for this repository. I'm planning on releasing a new version next week and I don't see any issues from making this change, so I'll probably merge this PR next week sometime.