mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 04:51:31 +08:00 
			
		
		
		
	fix(client/fonts): grouping not working properly on iOS
This commit is contained in:
		
							parent
							
								
									a22afc4283
								
							
						
					
					
						commit
						8a494b220b
					
				| @ -212,15 +212,17 @@ export default class FontsOptions extends OptionsWidget { | ||||
|         $select.empty(); | ||||
| 
 | ||||
|         for (const { title, items } of Object.values(FONT_FAMILIES)) { | ||||
|             $select.append($("<optgroup>") | ||||
|             const $group = ($("<optgroup>") | ||||
|                 .attr("label", title)); | ||||
| 
 | ||||
|             for (const {value, label} of items) { | ||||
|                 $select.append($("<option>") | ||||
|                 $group.append($("<option>") | ||||
|                     .attr("value", value) | ||||
|                     .prop("selected", value === currentValue) | ||||
|                     .text(label)); | ||||
|             } | ||||
| 
 | ||||
|             $select.append($group); | ||||
|         } | ||||
| 
 | ||||
|     } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran