I am using the Magento 2.3.2 Version.
I have set the popup modal but it is not working into the iPhone safari browser. They give the following error:
TypeError: undefined is not an object (evaluating 'elem.nodeName'
Please check below my popup modal code
require(
[
'jquery',
'Magento_Ui/js/modal/modal',
'owlslider'
],
function(
$,
modal
) {
var options = {
type: 'popup',
responsive: true,
innerScroll: true,
buttons: []
};
var popup = modal(options, $('#popup-mpdal')); //This line Gives error
$(".country_switcher").on('click',function(){
$("#popup-mpdal").modal("openModal");
});
});
Please give me the solution how to solve this. Thanks in Advance.