mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 05:12:25 -05:00 
			
		
		
		
	[bugfix/frontend] Add nosubmit option to form fields + use it when instance custom CSS disabled (#2290)
		
	This commit is contained in:
		
					parent
					
						
							
								4facad3d81
							
						
					
				
			
			
				commit
				
					
						48a0687736
					
				
			
		
					 6 changed files with 29 additions and 6 deletions
				
			
		|  | @ -27,6 +27,12 @@ export default function getFormMutations( | |||
| 	const mutationData: Array<[string, any]> = []; | ||||
| 	 | ||||
| 	Object.values(form).forEach((field) => { | ||||
| 		if (field.nosubmit) { | ||||
| 			// Completely ignore
 | ||||
| 			// this field.
 | ||||
| 			return; | ||||
| 		} | ||||
| 		 | ||||
| 		if ("selectedValues" in field) { | ||||
| 			// FieldArrayInputHook.
 | ||||
| 			const selected = field.selectedValues(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue