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.
		
		
		
		
		
			
		
			
				
					
					
						
							17 lines
						
					
					
						
							422 B
						
					
					
				
			
		
		
	
	
							17 lines
						
					
					
						
							422 B
						
					
					
				| import { actionable } from '@github/catalyst/lib/actionable'
 | |
| import { targets, targetable } from '@github/catalyst/lib/targetable'
 | |
| 
 | |
| export default actionable(targetable(class extends HTMLElement {
 | |
|   static [targets.static] = [
 | |
|     'items'
 | |
|   ]
 | |
| 
 | |
|   add (e) {
 | |
|     const elem = document.createElement('input')
 | |
|     elem.value = e.detail.uuid
 | |
|     elem.name = `values[${this.dataset.fieldUuid}][]`
 | |
| 
 | |
|     this.prepend(elem)
 | |
|   }
 | |
| }))
 |