fix: minor bugs in webkit based browsers

This commit is contained in:
thecodrr
2022-03-09 16:01:10 +05:00
parent 09fbe3112c
commit 12922cb52e
2 changed files with 9 additions and 3 deletions

View File

@@ -70,12 +70,16 @@
url("./assets/fonts/open-sans-v20-latin-700italic.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
.selectable {
-webkit-touch-callout: text;
.selectable,
input,
textarea,
[contenteditable="true"],
[contenteditable="true"] > * {
-webkit-touch-callout: initial;
-webkit-user-select: text;
-khtml-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
-ms-user-select: initial;
user-select: text;
}

View File

@@ -70,6 +70,8 @@ function ListItem(props) {
bg={isSelected ? "shade" : background}
onContextMenu={(e) => {
e.preventDefault();
e.stopPropagation();
let items = props.menu?.items?.slice() || [];
let title = props.item.title;
let selectedItems = selectionStore