mirror of
				https://github.com/ArthurSonzogni/FTXUI.git
				synced 2025-11-04 05:28:15 +08:00 
			
		
		
		
	Fix OnEvent being called on Empty containers.
This commit is contained in:
		
				
					committed by
					
						
						Arthur Sonzogni
					
				
			
			
				
	
			
			
			
						parent
						
							ede49fd5e7
						
					
				
				
					commit
					823e0906da
				
			@@ -37,7 +37,7 @@ bool Container::OnEvent(Event event) {
 | 
			
		||||
  if (!Focused())
 | 
			
		||||
    return false;
 | 
			
		||||
 | 
			
		||||
  if (ActiveChild()->OnEvent(event))
 | 
			
		||||
  if (ActiveChild() && ActiveChild()->OnEvent(event))
 | 
			
		||||
    return true;
 | 
			
		||||
 | 
			
		||||
  return (this->*event_handler_)(event);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user