Components that use js are not compatible with Livewire? Testing Select-search with livewire #1634
Replies: 6 comments 4 replies
-
I also have problems with these components. Livewire Full-page components work correctly with tailwind elements. However, if I try to insert a tailwind component inside a livewire component (like wire elements modal) does not work. |
Beta Was this translation helpful? Give feedback.
-
Hard for me to help you with that. If I understand correctly the Does the |
Beta Was this translation helpful? Give feedback.
-
I have the exact same problem and don't know a solution or workaraund. But I don't think it' related to using or adding wire:model. app.js `import { initTE({ |
Beta Was this translation helpful? Give feedback.
-
@MGeurts In other frameworks we are initializing components (via JS or via initTE method) inside lifecycle hooks - after component mounts. Maybe you could use the Lifecycle Hooks from livewire to resolve those issues? |
Beta Was this translation helpful? Give feedback.
-
I found a solution for using TWE JS elements in Livewire components. Wrap the element in Also remove |
Beta Was this translation helpful? Give feedback.
-
Hi All! |
Beta Was this translation helpful? Give feedback.
-
https://tailwind-elements.com/docs/standard/forms/select/#search
After using wire:model without deferring, an event is called and all components that use javascript behaviors have their behavior broken.
before
after using wire:model in any component of the page ...
ex. typing anything in the simple input as
<input type=text wire:model="model"/>
The layout of component crashes
Question: Components that use js are not compatible?
Beta Was this translation helpful? Give feedback.
All reactions