diff --git a/src/web/control.js b/src/web/control.js index 1b519bd..5dcca7b 100644 --- a/src/web/control.js +++ b/src/web/control.js @@ -333,7 +333,8 @@ function App({ wsEndpoint, role }) { handleSwap(hoveringIdx) } else { setDragStart(hoveringIdx) - ev.target.select() + // Select the text (if it is an input element) + ev.target.select?.() } }, [handleSwap, swapStartIdx, hoveringIdx],