Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot select options on safari 13.2 #399

Open
BernardCooley opened this issue Jun 3, 2020 · 0 comments
Open

Cannot select options on safari 13.2 #399

BernardCooley opened this issue Jun 3, 2020 · 0 comments

Comments

@BernardCooley
Copy link

On iPhones and iPads running safari 13.2, when i select the dropdown and try to click on one of the options. It doesnt do anything. It works on all other devices/browsers.

Im implementing in the following manner.

var $customSelectBox = $(".js-macmillan-form").find("select");

$.each($customSelectBox, function () {
    var device = navigator.userAgent || navigator.vendor || window.opera;

    if (/iPhone|iPod|iPad/.test(device)) {
        $(this).selectBoxIt({
            native: true,
        });
    } else {
        $(this).selectBoxIt();
    }

    $(this).on("change", function () {
        $(".js-macmillan-form").validate().element($(this));
        if ($(this).val() === "") {
            $(this).closest(".row").addClass("error");
        }
    });
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant