This topic contains 1 reply, has 2 voices, and was last updated by Sean Sean 2 years, 1 month ago.

Select2 in Modal

  • Jigar
    Jigar
    Participant

    Posts: 32
    Member Reply #6913

    Hello,

    I am using version 4.5.5, theme 1.

    When i am using select2 in modal, drop down is not visible in front of modal is shows in back to modal, I don’t know what cause that issue,

    Select2 class is defined as select2me, See below screenshot for error.

    Can you tell us what goes wrong in modal? Outside modal it works fine!

    Thanks,

     

    Attachments:
    You must be logged in to view attached files.
    Sean
    Sean
    Keymaster

    Posts: 4526
    Support Staff Reply #6924

    Hi,

    As you can see the Select2 controls can be used in modals without any issue:
    http://keenthemes.com/preview/metronic/theme/admin_1/components_select2.html

    Could you please double check your code and make sure you followed the demo from the original theme.
    Also please make sure¬†tabindex=”-1″ is removed from the modal DIV in order to use select2 in modal properly.

    Thanks.

You must be logged in to reply to this topic.