Vuepic / vue-datepicker

Datepicker component for Vue 3
https://vue3datepicker.com
MIT License
1.48k stars 147 forks source link

Make an handleEsc which will go to the original state of the date #724

Closed ArdyZ closed 9 months ago

ArdyZ commented 9 months ago

Is your feature request related to a problem? Please describe. Sometimes I accidentally change the input as I am using it as a text field. It would be nice to undo all those changes by pressing the Esc button on the keyboard.

Describe the solution you'd like Using the @keydown.esc, call a the function handleEsc (like the handleEnter and handleTab) which then goes back to the state before the focus came onto the input field.

Additional context Feedback on the issue is welcome, as it is my first time on a open-source project.

Jasenkoo commented 9 months ago

This is kinda redundant, as the input is a text input field, you can just use browser undo.