0

I am upgrading the jQuery UI version in my project from 1.8.9 to 1.13.2. After upgrading I noticed that the modal is not working as expected. It is not overlaying properly and all the elements behind are selectable. I tried searching everywhere but couldnt find an answer.

Please see my code below:

function contact_show() {
  $("#contact-frame").attr("src", 'static/contacts.html');

  $("#contact-dialog").dialog({
    title: 'Contact',
    resizable: false,
    position: {
      at: "center"
    },
    width: 800,
    height: 310,
    // work around for JQueryUI scroll bars bug in IE
    open: function (event, ui) { 
      $('body').css('overflow', 'hidden'); 
      $('.ui-widget-overlay').css('width', '100%'); 
    },
    close: function (event, ui) { 
      $('body').css('overflow', 'auto'); 
    },
    modal: true
  });
}

I have included jQuery UI and CSS of version 1.13.2 in my code. What am I missing here? Can someone help me on this please.

2
  • What happens if you get rid of those IE workarounds? Commented Feb 25, 2024 at 23:56
  • Thanks for your response barmar.But no joy removing the workarounds Commented Feb 26, 2024 at 10:29

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.