Chosen Mutli Select z-index wrong – select appeasr above chosen-drop

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Chosen Mutli Select z-index wrong – select appeasr above chosen-drop

This topic contains 5 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 3 years, 3 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #22373
    DivineSites
    DivineSites
    Participant

    Another problem, we’ve set up a multi select with chosen, but the dropdown list is showing underneath the other chosen fields..
    I’ve tried working with the z-indedx, but it hasn’t helped..

    Anyu idea how to fix this?

    Thanks

    #22386
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Can you please link me to the page where the plugin is active? It’s definitely a z-index issue, but it’s a bit more complicated I think, as there are multiple instances of the same search drop down.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #22404
    DivineSites
    DivineSites
    Participant
    You cannot access this content.
    #22409
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Indeed, that is not correct. I think the only way to fix that for now is by using a custom code. Please try addomg this custom code to the functions.php in your theme/child theme directory. Before editing, please make sure to have a full site back-up just in case!

    add_action('wp_footer', 'asp_sb_footer_fix');
    function asp_sb_footer_fix() {
      ?>
      <script>
      jQuery(function($){
        var z = 1040;
        setTimeout(function(){
          $('.asp_sb .chosen-container').each(function(i, o){
            $(this).css('zIndex', z - i);  
          });
        }, 2500);
      });
      </script>
      <?php
    }
    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #22410
    DivineSites
    DivineSites
    Participant

    Ernest you legend!!

    That’s working a charm!

    I have more jQuery on the page, so I just added it with the rest of the jQuery I was doing, and it’s working a charm!

    All the best!!

    #22411
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    You are welcome 🙂

    I will include this fix in the upcoming release as well.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.