Fix selected option removal.
This commit is contained in:
		
							parent
							
								
									8904ed741c
								
							
						
					
					
						commit
						334a311c9e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -214,7 +214,7 @@ export function Select<OptionKey extends keyof any, Option>(
 | 
			
		|||
						<li key={String(optionKey)}>
 | 
			
		||||
							<Check />
 | 
			
		||||
							<div className={"option"}>{(renderOption ?? defaultRenderOption)(option)}</div>
 | 
			
		||||
							<button className={"remove flat"} type={"button"} onClick={() => handleDeselectedOption(optionKey)}>
 | 
			
		||||
							<button className={"remove flat"} type={"button"} onMouseDown={() => handleDeselectedOption(optionKey)}>
 | 
			
		||||
								<X />
 | 
			
		||||
							</button>
 | 
			
		||||
						</li>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue