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

Material Dashboard Pro Livewire #3

Open
michael-developer-1384 opened this issue Nov 19, 2023 · 2 comments
Open

Material Dashboard Pro Livewire #3

michael-developer-1384 opened this issue Nov 19, 2023 · 2 comments

Comments

@michael-developer-1384
Copy link

I think most of the used javascript libraries are not compatible with livewire. For example the Choices. If you connect a select object with choices with a livemire model, it's not working anymore.

LIke here:
https://material-dashboard-pro-laravel-livewire.creative-tim.com/ecommerce/products/new-product

<select class="form-control" name="choices-sizes" id="choices-sizes" wire:model="selectedSize">
    <option value="Choice 1" selected="">Medium</option>
    <option value="Choice 2">Small</option>
    <option value="Choice 3">Large</option>
    <option value="Choice 4">Extra Large</option>
    <option value="Choice 5">Extra Small</option>
</select>
@michael-developer-1384
Copy link
Author

I allready sent a ticket on your website

@dipeshmurmu2005
Copy link

If you want Medium to selected in default then in your livewire class you have to set it
like public $selectedSize = "Choice 1"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants