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

Prevent setting position: static inline when container option is passed #883

Merged
merged 1 commit into from
Oct 22, 2020

Conversation

phegman
Copy link

@phegman phegman commented Apr 24, 2020

Fixes #840

When the container option is passed position is not set in the adjustPosition method but it is still set to static in the hide method. This makes it so you need to use position: absolute !important in your CSS to override the unnecessary inline styles.

This PR adds the same check that is in adjustPosition to the hide method

Makes it so `!important` is not needed to override
`position: static` which is set inline
@rikkert rikkert merged commit 6a999f8 into Pikaday:master Oct 22, 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

Successfully merging this pull request may close these issues.

Hide sets style to position:static, instead of just removing position:absolute
2 participants