Skip to content

Cannot select options on safari 13.2 #399

@BernardCooley

Description

@BernardCooley

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");
        }
    });
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions