protonemedia / laravel-form-components

A set of Blade components to rapidly build forms with Tailwind CSS (v1.0 and v2.0) and Bootstrap 4/5. Supports validation, model binding, default values, translations, Laravel Livewire, includes default vendor styling and fully customizable!
https://protone.media/blog/laravel-form-components-to-rapidly-build-forms-with-tailwind-css-and-bootstrap-4
MIT License
814 stars 105 forks source link

bind issue #58

Closed junwoo-nichibo closed 3 years ago

junwoo-nichibo commented 3 years ago

when using bind with the x-form-input , doesn't show the correct value, especially the value is 0. I guess the issue is bound value.

$default = $this->getBoundValue($bind, $name) ?: $default;

to

$default = $this->getBoundValue($bind, $name) ?? $default;

in \src\Components\HandlesDefaultAndOldValue.php.

pascalbaljet commented 3 years ago

Fixed in v3.1.0.