There was an error while loading. Please reload this page.
1 parent 850b559 commit 8c39829Copy full SHA for 8c39829
src/components/Switch.svelte
@@ -54,7 +54,7 @@
54
//event handlers
55
56
function onDragStart(clientX) {
57
- inputRef.focus();
+ inputRef && inputRef.focus && inputRef.focus();
58
state.startX = clientX;
59
state.hasOutline = true;
60
state.dragStartingTime = Date.now();
0 commit comments