DatePicker not showing properly on a modal window in Bootstrap 3 (Safari/Chrome)

petekaner

I’m using AdminLTE/Bootstrap for a backend dashboard and I’m having a problem when showing modal windows with the DatePickers on it.

I have the following JS code to load content from other pages on it (I just add the class load-external to links):

$('.load-external').click(function(ev) {
    var href = $(this).attr('href');
    $('#externalModal').find('.modal-body').load(href);
    $('#externalModal').find('.modal-title').text($(this).attr('data-confirm-title'));
    $('#externalModal').modal({
        show: true
    });
    return false;
});

The problem is when in the div I load a form with a DatePicker such as:

<input id="agreement_payment_estimatedPayingDate"
    name="agreement_payment[estimatedPayingDate]" 
    class="form-control" 
    required="required" 
    type="date" 
    value="2016-06-22"
    data-date-format="yyyy-mm-dd"
    data-provide="datepicker" />

The DatePicker is displayed below the modal windowdate picker

In firefox it works properly but not in Chrome neither Safari.

Any idea why this could be happening?

Rafał Mnich

Like described here: https://stackoverflow.com/a/15183778/1041895

Just use css, and set z-index bigger than 1150, which is modal z-index.

<style>
    .datepicker{z-index:1151 !important;}
</style>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Bootstrap modal - popup window not showing

From Dev

bootstrap 3 datepicker not showing calendar

From Dev

Leaflet map not showing properly in bootstrap 3.0 modal

From Dev

Leaflet map not showing properly in bootstrap 3.0 modal

From Dev

bootstrap 3 modal in meteor not showing

From Dev

Bootstrap tooltip showing behind modal window

From Dev

bootstrap 3 modal window not working

From Dev

jQuery Datepicker in Twitter Bootstrap 3 Modal

From Dev

Use jQuery DatePicker in Bootstrap 3 modal

From Dev

jQuery Datepicker in Twitter Bootstrap 3 Modal

From Dev

Use jQuery DatePicker in Bootstrap 3 modal

From Dev

bootstrap 3 modal window close button will not close modal window

From Dev

Bootstrap 3 contact modal is not showing up

From Dev

Bootstrap 3 contact modal is not showing up

From Dev

google+ follow button not showing properly in bootstrap modal in firefox

From Dev

Launch modal window on link click? Bootstrap 3

From Dev

Twitter Bootstrap 3 Modal Window OnScroll Event

From Dev

Detecting if bootstrap modal window is show don't work properly

From Dev

Animating showing/hiding Ui Bootstrap alert in Modal window AngularJS

From Dev

Animating showing/hiding Ui Bootstrap alert in Modal window AngularJS

From Dev

Bootstrap datepicker not woking in modal

From Dev

Bootstrap datepicker in modal not working

From Dev

Bootstrap datepicker not woking in modal

From Dev

JQuery Datepicker in Bootstrap modal

From Dev

Modal window not showing up

From Dev

bootstrap datepicker is not showing

From Dev

Bootstrap modal not hiding properly

From Dev

Bootstrap modal not hiding properly

From Dev

Bootstrap Modal not showing up

Related Related

HotTag

Archive