Fix theme selector bubbling out its click events and causing context menu to float away
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
							parent
							
								
									df05273225
								
							
						
					
					
						commit
						3f62f20a85
					
				| 
						 | 
				
			
			@ -130,7 +130,10 @@ export default class UserMenu extends React.Component<IProps, IState> {
 | 
			
		|||
        this.setState({contextMenuPosition: null});
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    private onSwitchThemeClick = () => {
 | 
			
		||||
    private onSwitchThemeClick = (ev: React.MouseEvent) => {
 | 
			
		||||
        ev.preventDefault();
 | 
			
		||||
        ev.stopPropagation();
 | 
			
		||||
 | 
			
		||||
        // Disable system theme matching if the user hits this button
 | 
			
		||||
        SettingsStore.setValue("use_system_theme", null, SettingLevel.DEVICE, false);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue