forked from cybrespace/pinafore
		
	
							parent
							
								
									e894e031fb
								
							
						
					
					
						commit
						da7a29d503
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -17,7 +17,7 @@ function onEvent (e) {
 | 
			
		|||
  if (type === 'click') {
 | 
			
		||||
    let selection = window.getSelection()
 | 
			
		||||
    let selectionStr = selection && selection.toString()
 | 
			
		||||
    if (selectionStr && selection.toString().length && target.contains(selection.anchorNode)) {
 | 
			
		||||
    if (selectionStr && selectionStr.length && target.contains(selection.anchorNode)) {
 | 
			
		||||
      return // ignore if the user is selecting text inside the clickable area
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue