jonthornton / Datepair.js

A javascript plugin for intelligently selecting date and time ranges, inspired by Google Calendar.
https://www.jonthornton.com/Datepair.js
358 stars 87 forks source link

Manually entering time and pressing enter rounding the time #87

Closed avinash-ramireddy closed 7 years ago

avinash-ramireddy commented 7 years ago

Hi, Manually entering time in time field and pressing enter rounding the time to nearest value from dropdown. But when I enter the same time and press TAB it holds entered value. I am going to change in script file of jquery-timepicker by debugging. But is there any way to do this without doing any changes to the code by some kind of settings?

jonthornton commented 7 years ago

You're referring to something specific to jquery-timepicker. This is the intended behavior. Hitting enter grabs the selected value from the dropdown.

Disable automatic highlighting by setting typeaheadHighlight: false in the timepicker options.