TrevorS / bootstrap3-datetimepicker-rails

This gem packages the bootstrap-datetimepicker for the Rails 3.1+ asset pipeline.
MIT License
292 stars 123 forks source link

Date picker doesn't close upon selecting another datepicker #68

Open Gomathi-N opened 5 years ago

Gomathi-N commented 5 years ago

I recently upgraded my bootstrap3-datetimepicker-rails gem from version 3.0.0 to 3.0.3 and bootstrap-sass 3.1.1.0 to 3.4.1.

I am getting a strange behaviour while selecting another datepicker when the current datepicker haven't closed yet. PFA Screen Shot 2019-07-07 at 1 00 32 PM

It was working fine before upgrading. Any ideas or work around for this issue?

I initialized the date picker as below:

$("[data-behaviour~='datetimepicker']").datetimepicker({ pickDate: true, pickTime: true, useCurrent: false, language: 'en-gb' });