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

Datepicker Not Displayed Properly #29

Open
dhimasyoga opened this issue Feb 27, 2018 · 7 comments
Open

Datepicker Not Displayed Properly #29

dhimasyoga opened this issue Feb 27, 2018 · 7 comments

Comments

@dhimasyoga
Copy link

dhimasyoga commented Feb 27, 2018

I don't know what's wrong, but the datepickk displayed like this :

image

Here are what I've done :

  • I separated the "custom configuration" of datepickk in separated file named "custom-datepicker.js", and I've write it with the right path
  • I've included the datepickk.min.js and datepick.min.css
  • I'm going to place the datepicker inside a div with id calendarContainer, and this is my code :
    var datepicker = new Datepickk({ container: document.querySelector('#calendarContainer'), inline: true, range: true });
  • I'm not making any changes in the datepickk.min.css and the datepickk.min.js file

I don't know what's wrong, but the date items seems like block-displayed. I need your help asap. Thanks in advance :)

@crsten
Copy link
Owner

crsten commented Feb 27, 2018

Hi,
Do you have some other stylesheets that are changing the datepickk styles?

@dhimasyoga
Copy link
Author

dhimasyoga commented Feb 28, 2018

I'm not sure, i don't make my own style for the sidebar list items, i mean i'm not giving a display property to it

@crsten
Copy link
Owner

crsten commented Mar 1, 2018

Could you try to inspect it and check if any other stylesheets are changing the default styling?

@dhimasyoga
Copy link
Author

I've inspect it and i found that .d-tables { display: table!important; } make the date items seem like 'block-displayed'. Then i try to make my custom css style to change .d-tables display property to display: inline, but nothing changes, the datepickk items still look like 'block-displayed'

@DisobedientMedia
Copy link

Getting same problem, looks like it is not compatible with Bootstrap 4.
Not tried Bootstrap 3

@ashep
Copy link

ashep commented Aug 19, 2018

+1, it's not compatible with Twitter Bootstrap 4. because it uses .d-* classes as utility ones. For more information: https://getbootstrap.com/docs/4.0/utilities/display/

@ashep
Copy link

ashep commented Aug 19, 2018

#37 contains renamed classes to avoid intersection with Bootstrap's class names.

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

4 participants