Skip to content

Commit 144741e

Browse files
authored
no-bug: Only set checked attr if value is true on live folder context menu (gh-12882)
1 parent 12b62cb commit 144741e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/zen/live-folders/ZenLiveFoldersUI.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,10 @@ class nsZenLiveFoldersUI {
7878
menuItem.setAttribute("data-l10n-id", option.l10nId);
7979

8080
if (option.checked !== undefined) {
81-
menuItem.setAttribute("checked", option.checked);
8281
menuItem.setAttribute("type", option.type ?? "checkbox");
82+
if (option.checked === true) {
83+
menuItem.setAttribute("checked", "true");
84+
}
8385
}
8486

8587
if (option.l10nArgs) {

0 commit comments

Comments
 (0)