fix: role multi select logic

This commit is contained in:
defaultkavy 2024-04-02 08:54:59 +08:00
parent bf6ad4a8c1
commit 27996c05ed
3 changed files with 4 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -29,7 +29,7 @@
<meta name="twitter:title" content="YouTube Chat Designer">
<meta name="twitter:description" content="YouTube Chat CSS design tool for streamer.">
<!-- <meta name="twitter:image" content=""> -->
<script type="module" crossorigin src="/assets/index-hy2HKrru.js"></script>
<script type="module" crossorigin src="/assets/index-BKk9KBzt.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-nOkcB8kh.css">
</head>
<body>

View File

@ -60,7 +60,8 @@ const $app = $('app').content([
return
};
}
if ($self_input.checked()) return e.preventDefault();
if ($self_input.checked() && !IS_MULTI_CHECKED) return e.preventDefault();
if ($self_input.checked() && IS_MULTI_CHECKED) e.preventDefault();
$input_list.forEach($input => {
if ($input.id() !== id.toLowerCase()) $input.checked(false)
})