Fix context menu click-outside behavior to prevent underlying actions
When a context menu is open, clicking outside should only close the menu without triggering underlying actions (like drag-to-create in week view). Implementation: - Enhanced global click handler to prevent default actions when menus are open - Added context menu state propagation through component hierarchy - Modified interactive components to check context menu state before acting - Provides double protection at both global and component levels 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
		| @@ -23,6 +23,8 @@ pub struct CalendarProps { | ||||
|     pub view: ViewMode, | ||||
|     #[prop_or_default] | ||||
|     pub on_create_event_request: Option<Callback<EventCreationData>>, | ||||
|     #[prop_or_default] | ||||
|     pub context_menus_open: bool, | ||||
| } | ||||
|  | ||||
| #[function_component] | ||||
| @@ -209,6 +211,7 @@ pub fn Calendar(props: &CalendarProps) -> Html { | ||||
|                             on_event_context_menu={props.on_event_context_menu.clone()} | ||||
|                             on_calendar_context_menu={props.on_calendar_context_menu.clone()} | ||||
|                             on_create_event={Some(on_create_event)} | ||||
|                             context_menus_open={props.context_menus_open} | ||||
|                         /> | ||||
|                     }, | ||||
|                 } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Connor Johnstone
					Connor Johnstone