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?
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?
There's a detailed discussion going on for this topic https://github.com/amsul/pickadate.js/issues/1138
As a temporary fix I have the following changes
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.
This is a regression in Chrome 73. We have released pickadate 3.6.1 which should resolve this.
See https://bugs.chromium.org/p/chromium/issues/detail?id=941910 for the regression in Chrome.
The solution is to filter the target with the parent: if ( target != ELEMENT && target != document && target != P.$root.parent()[0] && event.which != 3 )
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();
}
});*/