1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix triple click breaking inputs

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-06-09 11:53:51 -04:00
parent 808875f491
commit 58f9752a29

View File

@ -108,7 +108,7 @@ class NonInjectedDrawer extends React.Component<DrawerProps & Dependencies & typ
if (ev.detail === 3) {
const selection = window.getSelection();
if (selection?.anchorNode?.parentNode) {
if (selection?.anchorNode?.parentNode && !(selection.anchorNode instanceof HTMLLabelElement)) {
selection.selectAllChildren(selection.anchorNode.parentNode);
}
}