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

DateTimePicker is not shown #890

Closed
ghost opened this issue May 15, 2017 · 9 comments
Closed

DateTimePicker is not shown #890

ghost opened this issue May 15, 2017 · 9 comments

Comments

@ghost
Copy link

ghost commented May 15, 2017

When I click on a field with a class "datetimepicker" the bootstrap dropdown is not shown as expected. I'm using Administrate 0.7.0. I can see from the Inspector that the dropdown element is created but not shown.

Any issues?

@nickcharlton
Copy link
Member

Hi @invulsion. Which browser versions are you seeing this with?

Can you see the same on the public prototype app?

@ghost
Copy link
Author

ghost commented May 19, 2017

@nickcharlton the public prototype seems to work fine.
I'm using Chrome Version 58.0.3029.110 (64-bit) on Mac OS X.

PS: The data search field is broken. When I click inside it, it doesn't focus the input field. It was working fine before the major redesign.

@mustafarian
Copy link

I'm experiencing the same symptoms with 0.7.0. Did anyone find a the cause and a solution to this?

@nickcharlton
Copy link
Member

@mustafarian Are you able to try with 0.8.0? If you can't see the problem on the prototype app, that'll solve your issue.

@lakehouseru
Copy link

+1 the same on 0.8.1 datetimepicker widget has display:none; css property even when i click on the input field

@nickcharlton
Copy link
Member

Hmm, interesting!

It sounds like the JavaScript which does this isn't loading. It's been a little while since this was first reported, could you report back if it's still an issue?

@NakajimaTakuya
Copy link

NakajimaTakuya commented Aug 31, 2018

As of jQuery version 3 and later, it seems to honor the value set in class unless the hidden setting of the target element is set in the style attribute.
Is this related?

https://jquery.com/upgrade-guide/3.0/#breaking-change-show-hide-and-toggle-methods-now-respect-more-stylesheet-changes

on
https://github.com/Eonasdan/bootstrap-datetimepicker/blob/master/src/js/bootstrap-datetimepicker.js#L1255

example:

jquery2
http://jsfiddle.net/nazomikan/tx7m6p0n/

jquery3
http://jsfiddle.net/nazomikan/cL1rpsuq/

@NakajimaTakuya
Copy link

By the way, repository of datetime_picker_rails is not currently being maintained, so it is not desirable to use it.
c4lliope/datetime_picker_rails#7

@pablobm
Copy link
Collaborator

pablobm commented Jan 9, 2020

Closing due to lack of activity. If you are still experiencing this issue, please let us know.

Here's a possibly related issue: #1408

@pablobm pablobm closed this as completed Jan 9, 2020
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

5 participants