Hi there,
I am playing a little bit with Livewire, and I have a problem with a time input.
When I bind the time input to a model, and I change the value with the keyboard and/or arrows, it resets to the previous(?) value. Does it have to do something with events? It does sends an AJAX request when you change the value.
Are you using the latest version of Livewire:
Yes sir!
Do you have any screenshots or code examples:
<input wire:model="start" type="time" name="start">
namespace App\Http\Livewire;
use Livewire\Component;
class Openingtimes extends Component
{
public $start;
...
public function render()
{
$this->start = '15:00';
return view('livewire.openingtimes');
}
...
}
Above is a snippet of the code.
Can anyone tell me why it ‘resets’ to the default value on change?
Thanks in advance!