mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-27 07:22:50 -05:00
Fix exception when clicking grid controls
This commit is contained in:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user