ankurk91 / vue-bootstrap-datetimepicker

Vue.js component for eonasdan bootstrap datetimepicker
MIT License
223 stars 66 forks source link

How to set `keyBinds` ? #45

Closed francoismassart closed 6 years ago

francoismassart commented 6 years ago

I'm submitting a ...

[ ] Bug report => search github for a similar issue or PR before submitting
[ ] Feature request
[x] Question

Tell about your platform

Question I'd like to disable the usage of the keyboard arrows to change the date because I prefer letting the user move inside the text content of the input. I know it is possible to do so by overwriting the value of keyBinds. I did it in a codepen using the jQuery version, but I don't know how to reproduce this using the version made in vuejs... How to overwrite keyBinds ?

Minimal reproduction of the problem with instructions

  1. Open the JSFiddle demo for vue
  2. Click inside the field
  3. Pick any date
  4. Press any arrow from the keyboard (left, top, right or bottom)
  5. The date value changes, I'd like to avoid this behavior

Thank you for your help

ankurk91 commented 6 years ago

This is not my concern.

Check this page if you find any information. http://eonasdan.github.io/bootstrap-datetimepicker/Options/