Skip to content

Timepicker not working with bootstrap modal. #839

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

Open
InsaneSkull opened this issue Sep 29, 2015 · 7 comments
Open

Timepicker not working with bootstrap modal. #839

InsaneSkull opened this issue Sep 29, 2015 · 7 comments

Comments

@InsaneSkull
Copy link

InsaneSkull commented Sep 29, 2015

When using with modal and both date and time mode is enabled timepicker doesn't opening. I am working with Mozila Firefox.

@atiquereza
Copy link

Dropdown not working with year, month and hour and min

@joaogac
Copy link

joaogac commented Apr 5, 2016

It's been more than 6 months and no workaround / bug fix has been done.

It seems this project is thrown away.... Sadly to say that.

@trentrichardson
Copy link
Owner

@joaogac

Sorry guys I don't use bootstrap modal. I try to review pull requests in a timely fashion but to be honest working a full time and at night I don't have a ton of time to explore every issue and provide a fix. I do rely on others to contribute when they can. I wish there were a group of reliable team members for this project as it would greatly improve it, but there isn't. If anyone is interested and could point me to some of their previous work I would be open to others joining this project. (I may write up an official invitation to this)

Have a look at the dev branch as there are several fixes there since the last release, however I don't believe this particular issue has been resolved. If you are able to pinpoint the issue and send a pull request I will be happy to review it.

@mariashahid
Copy link

For anyone still struggling with this issue. I came across similar problem with both jquery ui datepicker and trentrichardson timepicker. I found the following solution on stackoverflow to fix the problem and applies to both jquery ui datepicker and trentrichardson timepicker.

        var $confModal = $("#modal");
        var enforceModalFocusFn = $.fn.modal.Constructor.prototype.enforceFocus;
        $.fn.modal.Constructor.prototype.enforceFocus = function () { };
        $confModal.on('hidden', function () {
            $.fn.modal.Constructor.prototype.enforceFocus = enforceModalFocusFn;
        });

@memojuass
Copy link

After initializate your timepicker [ $('#timepicker1').timepicker(); ], add these lines, to adjust template into modal popUp
$('#timepicker1').timepicker({
template: 'modal'
});

@alimranahmed
Copy link

Thanks @mariashahid, it works for me.

@AragornMx
Copy link

After a few investigation i found a solition that works fine, you just have to add a CSS style in your page, add this

.ui-timepicker-container {z-index: 9999999 !important}

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

8 participants