clockpicker icon indicating copy to clipboard operation
clockpicker copied to clipboard

Problem with CSS

Open rafaelmon opened this issue 7 years ago • 3 comments

Hello,

I'm trying to implement de plugin, but i have some problem i think whit the CSS and i can't find the problem. captura When i try to select de hour the popover appear in the top of the page. i add this files

Any idea?

Thanks for your time.

Regards

rafaelmon avatar Dec 20 '17 18:12 rafaelmon

I have same problem. I'm using bootstrap version. bootstrap v. 3

koshin avatar Jan 02 '18 17:01 koshin

For an updated Bootstrap 4 version, you can see my fork here : https://github.com/djibe/clockpicker

In your case, why are you invoking dist/jquery-clockpicker.js, then dist/jquery-clockpicker.min.js, then src/clockpicker.js ? Declare jquery first and only jquery-clockpicker.min.js after that.

djibe avatar Jan 12 '19 14:01 djibe

A bit late to the party but the most probable reason you're seeing this is because of the DOM ready event. Since JQuery 3 released, there have been a few changes on the way it loads which may have an impact on this plugin. Try initiating the widget after explicitly waiting for the DOM load event.

i.e.

$(document).ready(function(){
  $('.clockpicker').clockpicker();
});

kstratis avatar Sep 17 '19 12:09 kstratis