Hello sir i am trying to use datapicker (https://www.daterangepicker.com/) but its not working wih livewire.
when i add (wire:model.defer="custom_date") this code it makes my input empty blank
and also when i use checkbox as checked its also not working
Livewire by definition doesn't play well with any JavaScript libraries, because they are in conflict for rewriting the same code on the page. So if you use Livewire, I would encourage to NOT use any JS/jQuery libraries together.
There's a section later in the course about Select2 and CKEditor examples, so you can make them work, but it's pretty hard.
Povilas sir was right.. livewire doesn't play well with other JS lib.. but you can achieve your purpose by dispatching livewire events,...
you have to set livewire properties value from external js lib callback
you can code something like in your livewire component
Hello sir i am trying to use datapicker (https://www.daterangepicker.com/) but its not working wih livewire. when i add (wire:model.defer="custom_date") this code it makes my input empty blank and also when i use checkbox as checked its also not working
Livewire by definition doesn't play well with any JavaScript libraries, because they are in conflict for rewriting the same code on the page. So if you use Livewire, I would encourage to NOT use any JS/jQuery libraries together.
There's a section later in the course about Select2 and CKEditor examples, so you can make them work, but it's pretty hard.
Povilas sir was right.. livewire doesn't play well with other JS lib.. but you can achieve your purpose by dispatching livewire events,...
you have to set livewire properties value from external js lib callback you can code something like in your livewire component