fix(web): disable click on inactive lines
This commit is contained in:
@@ -70,6 +70,9 @@
|
||||
class:bg-yellow-600={colors[i] === Color.YELLOW}
|
||||
class:bg-grey-600={colors[i] === Color.GREY}
|
||||
onclick={() => {
|
||||
if (!active) {
|
||||
return;
|
||||
}
|
||||
if (cursor === i) {
|
||||
colors[cursor] = (colors[cursor] + 1) % 3;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user