Skip to content

Commit 291d955

Browse files
committed
Fix - use innerText in menu for checked symbol
1 parent 838338a commit 291d955

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
@@ -1340,7 +1340,7 @@ class StandaloneMenu extends JSRootMenu {
13401340
text.style.display = 'flex';
13411341

13421342
const chk = doc.createElement('span');
1343-
chk.innerHTML = d.checked ? '\u2713' : '';
1343+
chk.innerText = d.checked ? '\u2713' : '';
13441344
chk.style.display = 'inline-block';
13451345
chk.style.width = '1em';
13461346
text.appendChild(chk);
@@ -1353,7 +1353,7 @@ class StandaloneMenu extends JSRootMenu {
13531353
} else {
13541354
if (need_check_area) {
13551355
const chk = doc.createElement('span');
1356-
chk.innerHTML = d.checked ? '\u2713' : '';
1356+
chk.innerText = d.checked ? '\u2713' : '';
13571357
chk.style.display = 'inline-block';
13581358
chk.style.width = '1em';
13591359
text.appendChild(chk);

0 commit comments

Comments
 (0)