mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	stream_color.js: Fix color picker not saving custom color.
Fix a bug where the color picker reverted the custom color to the previous one after clicking outside the popover. The bug occurred because although there is a confirm button, the 'clickoutFiresChanges' option was set as true, which made the frontend always send two POST request to edit the stream and, for a reason I wasn't able to discover, if you hit the confirm button and click outside fast enough, the change fired by the clickout event sent the old color to the server. It was fixed by setting the 'clickoutFiresChanges' option to false. Fixes #15101
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							d49e880c09
						
					
				
				
					commit
					fb6047c4ae
				
			@@ -93,7 +93,7 @@ exports.sidebar_popover_colorpicker_options = {
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
exports.sidebar_popover_colorpicker_options_full = {
 | 
			
		||||
    clickoutFiresChange: true,
 | 
			
		||||
    clickoutFiresChange: false,
 | 
			
		||||
    showPalette: true,
 | 
			
		||||
    showInput: true,
 | 
			
		||||
    flat: true,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user