techouse / intl-date-time

International DateTime for Laravel Nova
MIT License
57 stars 21 forks source link

Programmed filling #51

Closed GautierDele closed 3 years ago

GautierDele commented 3 years ago

There is an issue with the programmed filling.

When you set the "localized value" you need to click on the field to actualize the correct value when you are not using the normal value "Y-m-d". We are using "d/m/Y".

@techouse do you have any idea how to force the logic that is hapenning when clicking the component ?

I'm guessing that this logic is run on the mounted event in IntlDateTimePicker.vue

GautierDele commented 3 years ago

I'm guessing that rerunning this part of the code: https://github.com/techouse/intl-date-time/blob/master/resources/js/components/IntlDateTimePicker.vue#L232

might fix this. Will have a look asap