Fix triple click breaking inputs

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2022-06-13 11:03:59 -04:00
1 parent 808875f491
commit 58f9752a29
1 file changed
+1 -1
+1 -1
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);
}
}