タイムラインの「リノートを表示」のトグルスイッチが反応しない問題を直す (#12577)

* [frontend] Fix renote toggle switch

* Fix MkMenu rather than usage
This commit is contained in:
Yuriha 2023-12-06 12:07:53 +09:00 committed by GitHub
parent 8866c530c4
commit ad60e43ae4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ function focusDown() {
} }
function switchItem(item: MenuSwitch & { ref: any }) { function switchItem(item: MenuSwitch & { ref: any }) {
if (typeof item.disabled === 'boolean' ? item.disabled : item.disabled.value) return; if (item.disabled !== undefined && (typeof item.disabled === 'boolean' ? item.disabled : item.disabled.value)) return;
item.ref = !item.ref; item.ref = !item.ref;
} }