macOS Unable to Search Student Names in Behavior Module

On macOS using Safari, there is an issue when searching for student names in the Behavior module. Currently, the filtering relies solely on the “keyup” event, which fails to properly capture inputs in pinyin, English, and Chinese.

Summary

Even if you switch to using “input” and “compositionend” events, the issue might still persist. This could be due to several factors:


$("#"+_.name+"Search",_.container).on("keyup input compositionend",function(){
    var search = $(this).val().toLowerCase();
    $("option",_.selectSource).each(function(){
        var option = $(this);
        if(option.text().toLowerCase().includes(search)){
            option.show();
        } else {
            option.hide();
        }
    });
});

I have already tried modifying the core.min.js

Hi @AndroidOL, I’ve added your suggested change to v29, hopefully this helps address the issue, as Safari is often an outlier in browser compatibility as well. Many of these jQuery methods are due to be refactored for future versions, so ideally this will help improve compatibility as well.