IO-1612 Disable popover on PTO

This commit is contained in:
Patrick Fic
2022-01-07 10:06:02 -08:00
parent adc48f50d7
commit 677c649ad8
3 changed files with 3 additions and 1 deletions

View File

@@ -287,7 +287,7 @@ export function ScheduleEventComponent({
return (
<Popover
visible={visible}
onVisibleChange={(vis) => setVisible(vis)}
onVisibleChange={(vis) => !event.vacation && setVisible(vis)}
trigger="click"
content={event.block ? blockContent : popoverContent}
style={{ height: "100%", width: "100%" }}