Chrome Update 73 - Materialize CSS JS trigger error

前端 未结 8 2836
不思量自难忘°
不思量自难忘° 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:10

    I had the same issue. For now I made some changes to make it work (this is just a temp hot fix for me).

    On materialize.js (materialize-v0.100.2 not the min one):

    1) On line 1786 there is a setTimeout (with comment "Add click close handler to document") that has a wait value of 0, change it to 100.

    2) On line 6558 there is a binding to the click outside the datepicker element. (with comment "Bind the document events".) Put all this binding inside a setTimeout with a wait time of 500 ms.

    Fix 1 is for the selects, the second one is for the datepicker.

提交回复
热议问题