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.
		
		
		
		
		
			
		
			
				
					
					
						
							16 lines
						
					
					
						
							366 B
						
					
					
				
			
		
		
	
	
							16 lines
						
					
					
						
							366 B
						
					
					
				| export default class extends HTMLElement {
 | |
|   connectedCallback () {
 | |
|     this.items.forEach((item) => {
 | |
|       item.addEventListener('change', (e) => {
 | |
|         this.items.forEach((item) => {
 | |
|           item.checked = item === e.target && e.target.checked
 | |
|         })
 | |
|       })
 | |
|     })
 | |
|   }
 | |
| 
 | |
|   get items () {
 | |
|     return this.querySelectorAll('input[type="checkbox"]')
 | |
|   }
 | |
| }
 |