[O] Make numbers unselectable
This commit is contained in:
@@ -6,6 +6,7 @@ const N = ({className, value, setNum, editorMode, ...props}) => {
|
|||||||
|
|
||||||
return (<span className={multiStyles(styles, ["number", className])} {...props}>
|
return (<span className={multiStyles(styles, ["number", className])} {...props}>
|
||||||
{editorMode && <input
|
{editorMode && <input
|
||||||
|
disabled
|
||||||
onChange={(e) => setNum(parseInt(e.target.value))}
|
onChange={(e) => setNum(parseInt(e.target.value))}
|
||||||
value={v}
|
value={v}
|
||||||
/> || v}
|
/> || v}
|
||||||
|
|||||||
@@ -191,6 +191,7 @@ $animationFillMode: forwards;
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
height: $edgeLength;
|
height: $edgeLength;
|
||||||
width: $edgeLength;
|
width: $edgeLength;
|
||||||
|
user-select: none;
|
||||||
|
|
||||||
.invalid {
|
.invalid {
|
||||||
color: $invalidColor;
|
color: $invalidColor;
|
||||||
|
|||||||
Reference in New Issue
Block a user