From 043b9b3d26b8306ff5d3fa3496612f996fb6415a Mon Sep 17 00:00:00 2001
From: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>
Date: Tue, 25 Nov 2025 08:56:30 +0900
Subject: fix(frontend):
 MkRadiosのslotでv-ifを使用すると空白のoptionが生成される問題を修正 (#16832)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

* fix: MkRadiosのslotでv-ifを使用すると空白のoptionが生成される問題を修正 (MisskeyIO#1105)

* Update Changelog

* Update CHANGELOG.md

---------

Co-authored-by: あわわわとーにゅ <17376330+u1-liquid@users.noreply.github.com>
---
 packages/frontend/src/components/MkRadios.vue | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'packages/frontend/src/components/MkRadios.vue')

diff --git a/packages/frontend/src/components/MkRadios.vue b/packages/frontend/src/components/MkRadios.vue
index 8b641d0f93..426a1d2c2b 100644
--- a/packages/frontend/src/components/MkRadios.vue
+++ b/packages/frontend/src/components/MkRadios.vue
@@ -4,7 +4,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 -->
 
 <script lang="ts">
-import { defineComponent, h, ref, watch } from 'vue';
+import { Comment, defineComponent, h, ref, watch } from 'vue';
 import MkRadio from './MkRadio.vue';
 import type { VNode } from 'vue';
 
@@ -35,7 +35,7 @@ export default defineComponent({
 		if (options.length === 1 && options[0].props == null) options = options[0].children as VNode[];
 
 		// vnodeのうちv-if=falseなものを除外する(trueになるものはoptionなど他typeになる)
-		options = options.filter(vnode => !(typeof vnode.type === 'symbol' && vnode.type.description === 'v-cmt' && vnode.children === 'v-if'));
+		options = options.filter(vnode => vnode.type !== Comment);
 
 		return () => h('div', {
 			class: [
-- 
cgit v1.2.3-freya

