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
para timepicker comentar los siguiente en materialize.js
/** Hide when clicking or tabbing on any element except the clock and input
$doc.on('click.clockpicker.' + this.id + ' focusin.clockpicker.' + this.id, function (e) {
var target = $(e.target);
if (target.closest(self.popover.find('.picker__wrap')).length === 0 && target.closest(self.input).length === 0) {
self.hide();
}
});*/
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.