Skip to content

Commit 8b7b49a

Browse files
committed
Fix - use innerText in menu for checked symbol
1 parent afb1333 commit 8b7b49a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/gui/menu.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,7 +1350,7 @@ class StandaloneMenu extends JSRootMenu {
13501350
text.style.display = 'flex';
13511351

13521352
const chk = doc.createElement('span');
1353-
chk.innerHTML = d.checked ? '\u2713' : '';
1353+
chk.innerText = d.checked ? '\u2713' : '';
13541354
chk.style.display = 'inline-block';
13551355
chk.style.width = '1em';
13561356
text.appendChild(chk);
@@ -1363,7 +1363,7 @@ class StandaloneMenu extends JSRootMenu {
13631363
} else {
13641364
if (need_check_area) {
13651365
const chk = doc.createElement('span');
1366-
chk.innerHTML = d.checked ? '\u2713' : '';
1366+
chk.innerText = d.checked ? '\u2713' : '';
13671367
chk.style.display = 'inline-block';
13681368
chk.style.width = '1em';
13691369
text.appendChild(chk);

0 commit comments

Comments
 (0)