Disable click on disabled slots
This commit is contained in:
@@ -169,6 +169,7 @@ interface DayBodyScope {
|
||||
|
||||
function selectBlock(event: MouseEvent, scope: DayBodyScope, block: Interval) {
|
||||
// TODO: Disable blocks before today with updateDisabled and/or comparison
|
||||
if (scope.timestamp.disabled) return false;
|
||||
selectedBlock.value === block
|
||||
? (selectedBlock.value = null)
|
||||
: (selectedBlock.value = block);
|
||||
|
||||
Reference in New Issue
Block a user