forked from MapComplete/MapComplete
		
	Fix: add prevent-defaults
This commit is contained in:
		
							parent
							
								
									6900dedd3e
								
							
						
					
					
						commit
						afce4cb5ba
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -102,7 +102,7 @@ | ||||||
|         capture="environment" |         capture="environment" | ||||||
|         cls="button border-2 flex flex-col" |         cls="button border-2 flex flex-col" | ||||||
|         multiple={true} |         multiple={true} | ||||||
|         on:submit={(e) => handleFiles(e.detail)} |         on:submit={(e) =>{   handleFiles(e.detail) ; e.preventDefault(); e.stopPropagation()}} | ||||||
|       > |       > | ||||||
|         <div class="flex w-full items-center justify-center text-2xl"> |         <div class="flex w-full items-center justify-center text-2xl"> | ||||||
|           {#if image !== undefined} |           {#if image !== undefined} | ||||||
|  | @ -128,7 +128,7 @@ | ||||||
|         accept=".jpg, .jpeg" |         accept=".jpg, .jpeg" | ||||||
|         cls="flex justify-center md:hidden button" |         cls="flex justify-center md:hidden button" | ||||||
|         multiple={true} |         multiple={true} | ||||||
|         on:submit={(e) => handleFiles(e.detail, true)} |         on:submit={(e) =>{  return handleFiles(e.detail, true) ; e.preventDefault(); e.stopPropagation()}} | ||||||
|       > |       > | ||||||
|         <Tr t={t.selectFile}/> |         <Tr t={t.selectFile}/> | ||||||
|       </FileSelector> |       </FileSelector> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue