Fix iOS Safari dropdown visibility

This commit is contained in:
Théo Marchal 2021-03-06 12:09:24 +01:00
parent 35b1e06dfc
commit 4effbe657e

View File

@ -133,10 +133,16 @@ function updateMenu(availableOptions)
if (!array.includes($(this).prop("value")))
{
if ($(this).prop("value") != "")
{
$(this).hide();
$(this).attr('disabled', 'disabled'); // for iOS
}
}
else
{
$(this).show();
$(this).removeAttr('disabled'); // for iOS
}
});
}