Vuepic / vue3-date-time-picker

Datepicker component for Vue 3
https://vue3datepicker.com
MIT License
158 stars 13 forks source link

Cannot combine text input and range #101

Closed Nemega closed 2 years ago

Nemega commented 2 years ago

Describe the bug Editing a range directly using the input text resets it to 2002-01-01 00:00

Steps to reproduce the behavior

  1. Select a date
  2. Change it by using the input text
  3. Unfocus

Expected behavior Date correctly parsed

Thank you for investigating this issue. If you need any more info, let me know

Jasenkoo commented 2 years ago

@Nemega Can you provide more context, did you use the autoApply prop, maybe some code demo I can take a loo? Since it works fine on my end.

Nemega commented 2 years ago

Sorry I forgot to mention that the issue only seems to appear when the prop format is used (yyyy-MM-dd HH:mm in my case). textInput, range and autoApply are also used as well