Changed selected attribute to HTML5 boolean syntax in SelectBox.js.

Per MDN, HTMLOptionElement.selected is a Boolean attribute.
This commit is contained in:
Jon Dufresne 2020-05-07 21:02:42 -07:00 committed by GitHub
parent 3c5a586ce9
commit 6137ec2bf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@
select_all: function(id) {
const box = document.getElementById(id);
for (const option of box.options) {
option.selected = 'selected';
option.selected = true;
}
}
};