prevent selection from causing clicks on clickToContext
This commit is contained in:
		
							parent
							
								
									87e86526f8
								
							
						
					
					
						commit
						e946f3c434
					
				@ -5,5 +5,7 @@ export function ignoreClick (e) {
 | 
			
		||||
    // the target is an interactive element
 | 
			
		||||
    ['TEXTAREA', 'BUTTON', 'A', 'INPUT', 'FORM'].includes(e.target.tagName.toUpperCase()) ||
 | 
			
		||||
    // the target is an interactive element
 | 
			
		||||
    e.target.class === 'upvoteParent' || e.target.class === 'pointer'
 | 
			
		||||
    e.target.class === 'upvoteParent' || e.target.class === 'pointer' ||
 | 
			
		||||
    // the click is caused by a selection
 | 
			
		||||
    window.getSelection()?.toString()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user