What seems to be the problem:
I am getting a JavaScript error on date field
<input class="form-control" data-inputmask-alias="datetime" data-inputmask-inputformat="dd/mm/yyyy" data-mask="" im-insert="false" wire:model.defer="birth_date" name="birth_date" type="text" value="" id="birth_date">
@push('scripts')
<script>
$(document).ready(function(){
$('[data-mask]').inputmask();
});
</script>
@endpush
The field behaves fine when the component loads but as soon as the component refreshes, the javascript error is thrown out
Would it be because the JavaScript runs straight away after a component refresh. The page being loaded after the initial loading, the JS does not wait for the component to be fully loaded
Are you using the latest version of Livewire:
yes