I have 2 inputs (date and number) in view - blade, like this:
<div class="col-3">
<label for="jatuhtempodate">Jatuh tempo</label>
<input name="jatuhtempodate" id="jatuhtempodate" type="date" class="form-control mt-2" wire:model="jatuhtempodate"">
@error('jatuhtempodate')
<span class="text-danger">{{ $message }}</span>
@enderror
</div>
<div class="col-1">
<input type="number" class="form-control mt-2" wire:model='jatuhtempohari' placeholder="days">
@error('jatuhtempohari')
<span class="text-danger">{{ $message }}</span>
@enderror
</div>
and I have 2 variables in Livewire component:
public $jatuhtempodate;
public $jatuhtempohari;
What I want, if now is 21/07/2025, and I change input date to 25/07/2025, the input number will be 4 automatically.
And if I change the input number to 3, the input date will be 24/07/2025 automatically.
I already tried wire:model.live="jatuhtempodate", but it seems it doesn't work with input date.