fix(client): ページ編集時のドロップダウンメニューなどが動作しない問題を修正
This commit is contained in:
		
							parent
							
								
									7a66c9b5f3
								
							
						
					
					
						commit
						540e6e4f99
					
				
					 2 changed files with 18 additions and 17 deletions
				
			
		| 
						 | 
					@ -15,6 +15,7 @@
 | 
				
			||||||
### Bugfixes
 | 
					### Bugfixes
 | 
				
			||||||
- リレー向けのActivityが一部実装で除外されてしまうことがあるのを修正
 | 
					- リレー向けのActivityが一部実装で除外されてしまうことがあるのを修正
 | 
				
			||||||
- 削除したノートやユーザーがリモートから参照されると復活することがあるのを修正
 | 
					- 削除したノートやユーザーがリモートから参照されると復活することがあるのを修正
 | 
				
			||||||
 | 
					- クライアント: ページ編集時のドロップダウンメニューなどが動作しない問題を修正
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## 12.94.1 (2021/10/25)
 | 
					## 12.94.1 (2021/10/25)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -150,26 +150,26 @@ export default defineComponent({
 | 
				
			||||||
				});
 | 
									});
 | 
				
			||||||
			};
 | 
								};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			for (const optionOrOptgroup of options) {
 | 
								const scanOptions = (options: VNode[]) => {
 | 
				
			||||||
				if (optionOrOptgroup.type === 'optgroup') {
 | 
									for (const vnode of options) {
 | 
				
			||||||
					const optgroup = optionOrOptgroup;
 | 
										if (vnode.type === 'optgroup') {
 | 
				
			||||||
 | 
											const optgroup = vnode;
 | 
				
			||||||
						menu.push({
 | 
											menu.push({
 | 
				
			||||||
							type: 'label',
 | 
												type: 'label',
 | 
				
			||||||
							text: optgroup.props.label,
 | 
												text: optgroup.props.label,
 | 
				
			||||||
						});
 | 
											});
 | 
				
			||||||
					for (const option of optgroup.children) {
 | 
											scanOptions(optgroup.children);
 | 
				
			||||||
						pushOption(option);
 | 
										} else if (Array.isArray(vnode.children)) { // 何故かフラグメントになってくることがある
 | 
				
			||||||
					}
 | 
											const fragment = vnode;
 | 
				
			||||||
				} else if (Array.isArray(optionOrOptgroup.children)) { // 何故かフラグメントになってくることがある
 | 
											scanOptions(fragment.children);
 | 
				
			||||||
					const fragment = optionOrOptgroup;
 | 
					 | 
				
			||||||
					for (const option of fragment.children) {
 | 
					 | 
				
			||||||
						pushOption(option);
 | 
					 | 
				
			||||||
					}
 | 
					 | 
				
			||||||
					} else {
 | 
										} else {
 | 
				
			||||||
					const option = optionOrOptgroup;
 | 
											const option = vnode;
 | 
				
			||||||
						pushOption(option);
 | 
											pushOption(option);
 | 
				
			||||||
					}
 | 
										}
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
 | 
								};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								scanOptions(options);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			os.popupMenu(menu, container.value, {
 | 
								os.popupMenu(menu, container.value, {
 | 
				
			||||||
				width: container.value.offsetWidth,
 | 
									width: container.value.offsetWidth,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue