livewire / flux

The official Livewire UI component library
https://fluxui.dev
493 stars 41 forks source link

Cannot use wire:model on <flux:autocomplete> #17

Closed mauritskorse closed 2 months ago

mauritskorse commented 2 months ago

When trying to wire model the autocomplete component I get the error 1Cannot use wire:model on <flux:autocomplete>. Also tried it with the example in the docs.

(using Laravel 11.)

WanderingDaniel commented 2 months ago

Can replicate using Laravel 10.

idealerror commented 2 months ago

It looks like this is hardcoded into the autocomplete stub:

Flux::disallowWireModel($attributes, 'flux:autocomplete');
joshhanley commented 2 months ago

@mauritskorse thanks for reporting, I have opened a PR https://github.com/livewire/flux-pro/pull/5 to fix this on the Flux Pro (private) repo.

christopherarter commented 2 months ago

Apologies if this is a dumb question, but will this fix be available as a flux-pro version bump? I see it's been closed but not sure if the PR is merged or what the normal bug fix flow will be for the pro stuff. (I'm also encountering this bug on flux-pro)

Thanks!

tanshiqi commented 2 months ago

It looks like the problem still exists

joshhanley commented 2 months ago

The fix for this has now been released in Flux Pro v1.0.1, so please update.