I'm using the newest version of Livewire (2.12.3) and Air Datepicker (3.3.5).
At the moment I'm trying to set 2 global variables (date_from & date_to) in my Livewire controller.
Everything is working perfectly fine when using @this.set('date_from', date) OR Livewire.emit('updateDate', 'date_from', formattedDate) when isMobile is false.
I'm using the newest version of Livewire (2.12.3) and Air Datepicker (3.3.5).
At the moment I'm trying to set 2 global variables (date_from & date_to) in my Livewire controller.
Everything is working perfectly fine when using @this.set('date_from', date) OR Livewire.emit('updateDate', 'date_from', formattedDate) when isMobile is false.
See the code snippet here:
As you can see I'm tryin to set the
date_from
var whileisMobile: true
. What happens now:The input is being cleared, but as you can see with the string that is showing up, it does set.
And when I do
isMobile: false
, it works perfectly fine.Is there a different way I should approach when using isMobile in combination with Livewire? Or should I expect a fix for the isMobile prop?
Thanks!