Fix token menu appearing on drag of locked token
This commit is contained in:
parent
4ca9353cd9
commit
26f91dbb8f
@ -217,7 +217,7 @@ function Token({
|
|||||||
}
|
}
|
||||||
|
|
||||||
function handleClick() {
|
function handleClick() {
|
||||||
if (selectable && tokenRef.current) {
|
if (selectable && draggable && tokenRef.current) {
|
||||||
onTokenMenuOpen(tokenState.id, tokenRef.current);
|
onTokenMenuOpen(tokenState.id, tokenRef.current);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user