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

This dashboard doesn't play well with datetime pickers #16

Open
ghost opened this issue Feb 14, 2017 · 15 comments
Open

This dashboard doesn't play well with datetime pickers #16

ghost opened this issue Feb 14, 2017 · 15 comments

Comments

@ghost
Copy link

ghost commented Feb 14, 2017

I have been trying to put this library: https://github.com/Eonasdan/bootstrap-datetimepicker

In a website which uses light bootstrap dashboard, but they simply wont work with each other. What happens is the datetimepicker doesn't show up at all.

When I remove the CSS of light bootstrap dashboard, the datetime picker starts working fine again.

I was having the same problem with this datetime picker too: https://github.com/smalot/bootstrap-datetimepicker

So I'd say that this theme wont play along nicely with other libraries...

Reproduced error on this fiddle using the first library linked: http://jsfiddle.net/La8z2b8s/9/
To see it work, simply remove the light-bootstrap-dashboard.css from the resources list and the calendar will be shown.

To trigger the calendar, you need to click on the tiny calendar icon on the right of the input.

screenshot

Help would be appreciated.

@gbertl
Copy link

gbertl commented Feb 18, 2017

Try putting the datetimepicker css before the light bootstrap css.

@ghost
Copy link
Author

ghost commented Feb 19, 2017

Did it here: http://jsfiddle.net/La8z2b8s/10/

No difference.

@gbertl
Copy link

gbertl commented Feb 20, 2017

Add this code below the light bootstrap css:

.dropdown-menu {
          opacity: 1;
          filter: alpha(opacity=100);
          visibility: visible;
}

@alexandru-paduraru
Copy link
Member

@jdeen93 and @gilbertlacas thank you for using our product and sorry for the late response. It seems there is a bug on our dropdown because we added an animation on it. So, to fix that please go inside assets/css/light-bootstrap-dashboard.css to line: 1447 and replace the .dropdown-menu with .dropdown .dropdown-menu and then the problem will be fixed.

Please let us know if that is working fine.

Best,
Alex

@ghost
Copy link
Author

ghost commented Mar 21, 2017

@alexandru-paduraru Now the dropdown menu wont open up from the top navbar. The class open gets added on click, but it doesn't show up.

@alexandru-paduraru
Copy link
Member

@jdeen93 can you please send a link to your web app? Just did that on my local product and it is working fine:

screen shot 2017-03-29 at 12 02 58

Best,
Alex

@dariodipalma
Copy link

dariodipalma commented May 11, 2017

Same issue, please help!
I tried to remove all occurrencies of dropdown-menu from lbd css since i don't use them but it doesn't make any difference. The only way I managed to make calendar visible is by removing the whole light-bootstrap-dashboard.css.

@alexandru-paduraru
Copy link
Member

@dariodipalma did you made the change that I wrote here: #16 (comment) ?

Best,
Alex

@HBurakKaradag
Copy link

I resolved problem.. my solutions ;

I change addClass parameter on bootstrap-datetimepicker.min.js file.

I replaced bootstrap-datetimepicker-widget dropdown-menu to bootstrap-datetimepicker-widget dropdown-menu custom-datetimepicker

function(){var b=a("<div>").addClass("bootstrap-datetimepicker-widget dropdown-menu custom-datetimepicker");

light-bootstrap-dashboard.css

.bootstrap-datetimepicker-widget.dropdown-menu.custom-datetimepicker {
   opacity: 1 !important;
    filter: alpha(opacity=100);
    visibility: visible;
    margin-top: 5px;    
}

@morbak
Copy link

morbak commented Nov 1, 2017

@alexandru-paduraru, your solution work fine for me, thx.

@squido75
Copy link

@alexandru-paduraru your solution works for me! altho for me it's at line 2061 now... :)

@benjieperez
Copy link

The solution of @HBurakKaradag works for me

@truskul
Copy link

truskul commented Apr 16, 2018

@HBurakKaradag, your solution works fine, thanks a lot!

@ghost
Copy link
Author

ghost commented Jul 7, 2018

@alexandru-paduraru, the solution which you gave is not working ...

@uzkurama
Copy link

@alexandru-paduraru many thx, works for me!

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

9 participants