Skip to content

Commit 4afa2a7

Browse files
committed
[XSS] Fixed choice manager UI bug (thanks barbaz for report).
1 parent 4f0885a commit 4afa2a7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ui/ui.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ var UI = (() => {
174174
}
175175
button.onclick = () => {
176176
let xssUserChoices = UI.xssUserChoices;
177-
for (let o of list.selectedOptions) {
177+
for (let o of [...list.selectedOptions]) {
178178
delete xssUserChoices[o.value];
179-
list.remove(o);
179+
o.remove();
180180
}
181181
if (list.options.length === 0) {
182182
choicesUI.classList.remove("populated");

0 commit comments

Comments
 (0)