Chrome Update 73 - Materialize CSS JS trigger error

前端 未结 8 2934
不思量自难忘°
不思量自难忘° 2021-02-20 02:29

After the latest Chrome Update 73, the date pickers, time pickers and dropdowns for Materialize CSS 0.100.2 isn\'t working anymore, it flickers when you click on it and then dis

8条回答
  •  滥情空心
    2021-02-20 03:02

    Based on Armando answer(the only one that worked for me) I made a javascript function using JQuery for non angular projects:

    function refreshSelects(){
        $('select').material_select('destroy');
        $('select').each(function(){
            $(this).parent().attr("onclick","event.stopPropagation();");
        });
        $('select').material_select();  
    }
    

    Then, when I must initialize or refresh selectors content I just have to call the function

    refreshSelects();
    
    

提交回复
热议问题