svelty-picker
svelty-picker copied to clipboard
Getting the following error qn.minuteSwitch is not a function
Hi, we are using the svelty picket in our app, and we are running into an edge case where the app crashed. Further debugging this, we see it is something within the picker
qn.minuteSwitch is not a function
Seems to be happing here
case "Enter":
isFocused && e.preventDefault();
if (currentMode === "time") {
if (!timeEl.minuteSwitch(null)) {
return timeEl.minuteSwitch(true);
}
return resetView();
}
if (isFocused && resolvedMode === "date") pickerVisible = false;
if (innerDate && resolvedMode.includes("time")) {
currentMode = "time";
}
break;
'timeEl' variable is the Time element that's used in<Time /> Component. Looks like because of timing issues 'timeEl' is not being loaded in time and that's why we can't access it's function