Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timepicker is not focusing in preselected value #780

Open
bhaskardabhi opened this issue Dec 11, 2021 · 1 comment
Open

Timepicker is not focusing in preselected value #780

bhaskardabhi opened this issue Dec 11, 2021 · 1 comment

Comments

@bhaskardabhi
Copy link

Hi,

Whenever I prefill the timing and open the timepicker then it's not getting focused. Instead use has to scroll to the selected timing manually.

ezgif com-gif-maker (1)

Let me know the solution. Thanks

@ootwch
Copy link

ootwch commented Oct 22, 2022

Perhaps a long time fixed, but for reference and other people:
You have to make sure that you set the line height for your time item to match the CSS height of this item.

$(elementId).datetimepicker({
            datepicker: false,
            timeHeightInTimePicker: 32, // has to match CSS!
            ....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants