Using keyboard delete all the text from date input (e.g. press Tab and then Backspace/Delete)
Expected behavior
Input should become empty and value should be set to null.
It works that way when autoApply is set to false or when Datepicker is in single date mode.
Clearing input by clicking on 'x' also works without any problem
Describe the bug When trying to clear text input of Datepicker in range mode with
autoApply
set totrue
, page breaks with error:To Reproduce Steps to reproduce the behavior:
<Datepicker v-model="date" range text-input auto-apply />
Expected behavior Input should become empty and value should be set to null. It works that way when
autoApply
is set tofalse
or when Datepicker is in single date mode. Clearing input by clicking on 'x' also works without any problemScreenshots
Video: https://user-images.githubusercontent.com/7345182/153621929-4a5fb0ea-e78a-4703-8597-c6a7ec8510d4.mp4
Desktop (please complete the following information):