mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-30 08:52:49 -05:00
Fix exception when clicking grid controls
This commit is contained in:
@@ -333,7 +333,8 @@ function App({ wsEndpoint, role }) {
|
|||||||
handleSwap(hoveringIdx)
|
handleSwap(hoveringIdx)
|
||||||
} else {
|
} else {
|
||||||
setDragStart(hoveringIdx)
|
setDragStart(hoveringIdx)
|
||||||
ev.target.select()
|
// Select the text (if it is an input element)
|
||||||
|
ev.target.select?.()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[handleSwap, swapStartIdx, hoveringIdx],
|
[handleSwap, swapStartIdx, hoveringIdx],
|
||||||
|
|||||||
Reference in New Issue
Block a user