You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Include a reduced test case in the form of a Codepen when reporting bugs unless it is not applicable, otherwise your issue will be closed.
Expected Behavior
Current Behavior
Possible Solution
Steps to Reproduce (for bugs)
Context
DatePicker will instantly close on select in materialize-css version 0.100.2. in browser chrome 73.
a fix is to add a settimeout in line 7084 of dist/materialize js.
snippet of fix:
// Separated for IE
function handleFocusToOpenEvent(event) {
// Stop the event from propagating to the doc.
event.stopPropagation();
// If it’s a focus event, add the “focused” class to the root.
if (event.type == 'focus') {
P.$root.addClass(CLASSES.focused);
}
// And then finally open the picker.
setTimeout(function(){ P.open();},50)
}
// Return a new picker instance.
return new PickerInstance();
} //PickerConstructor
Version used:
Browser Name and version:chrome 73
Operating System and version (desktop):desktop only experiences this issue
The text was updated successfully, but these errors were encountered:
When asking general "how to" questions:
Please do not open an issue here!
Instead, ask for help on StackOverflow or in our Gitter channel.
Read the CONTRIBUTING document Any issues that are violating the contributing guidelines, will be closed!
Search for duplicate or closed issues and make sure to go through our labels.
Include a reduced test case in the form of a Codepen when reporting bugs unless it is not applicable, otherwise your issue will be closed.
Expected Behavior
Current Behavior
Possible Solution
Steps to Reproduce (for bugs)
Context
DatePicker will instantly close on select in materialize-css version 0.100.2. in browser chrome 73.
a fix is to add a settimeout in line 7084 of dist/materialize js.
snippet of fix:
// Separated for IE
function handleFocusToOpenEvent(event) {
} //PickerConstructor
The text was updated successfully, but these errors were encountered: