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:
parent
808875f491
commit
58f9752a29
@ -108,7 +108,7 @@ class NonInjectedDrawer extends React.Component<DrawerProps & Dependencies & typ
|
|||||||
if (ev.detail === 3) {
|
if (ev.detail === 3) {
|
||||||
const selection = window.getSelection();
|
const selection = window.getSelection();
|
||||||
|
|
||||||
if (selection?.anchorNode?.parentNode) {
|
if (selection?.anchorNode?.parentNode && !(selection.anchorNode instanceof HTMLLabelElement)) {
|
||||||
selection.selectAllChildren(selection.anchorNode.parentNode);
|
selection.selectAllChildren(selection.anchorNode.parentNode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user