forked from mirror/misskey
タイムラインの「リノートを表示」のトグルスイッチが反応しない問題を直す (#12577)
* [frontend] Fix renote toggle switch * Fix MkMenu rather than usage
This commit is contained in:
parent
8866c530c4
commit
ad60e43ae4
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user