mirror of https://github.com/docusealco/docuseal
				
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							18 lines
						
					
					
						
							365 B
						
					
					
				
			
		
		
	
	
							18 lines
						
					
					
						
							365 B
						
					
					
				| export default class extends HTMLElement {
 | |
|   connectedCallback () {
 | |
|     this.clearChecked()
 | |
| 
 | |
|     this.addEventListener('click', (e) => {
 | |
|       e.stopPropagation()
 | |
| 
 | |
|       navigator.clipboard.writeText(this.dataset.text || this.innerText.trim())
 | |
|     })
 | |
|   }
 | |
| 
 | |
|   clearChecked () {
 | |
|     this.querySelectorAll('input').forEach((e) => {
 | |
|       e.checked = false
 | |
|     })
 | |
|   }
 | |
| }
 |