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!

Home Page:https://protone.media/blog/laravel-form-components-to-rapidly-build-forms-with-tailwind-css-and-bootstrap-4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

default value for select

BenoitDesrosiers opened this issue · comments

I have tried to change the default value for a select.

<x-form-select name="country_code" :default="['nl']">
    <option value="be">Belgium</option>

    <option value="nl" >The Netherlands</option>

</x-form-select>

but it always shows Belgium.
how can I change it ?

arrggg ... I spent 2h trying to figure out what was wrong ... finally closed my firefox, reopened it ... and it's working. sorry for the issue. I will close it