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 disappears.
Any idea how to fix this?
I had the same problem. Although I am using angular2-materialize
, I believe this should work for people using materialize
directly.
The solution that worked for me was to wrap the materialize select
input with a div
that has a click
listener that simply calls event.stopPropagation()
:
<div (click)="$event.stopPropagation()">
<select materialize="material_select" [value]="selectValue" formControlName="someControl">
// options omitted (not relevant to answer)
</select>
</div>
I hope this helps some people.
For those who are too lazy to tweak the materialize.js yourself. I have added a default timeout of 500ms (which I think works consistently). This works with both the date and time pickers.
materialize.js
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With