mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-11 01:44:58 -06:00
Set property instead of set attribute
This commit resolves an issue with Safari not properly selecting an `<option>`. Closes #17866. PR #19024.
This commit is contained in:
@@ -191,10 +191,10 @@
|
||||
const init = () => {
|
||||
$('logLevelSelect').getElements('option').each((x) => {
|
||||
if (selectedLogLevels.indexOf(x.value.toString()) !== -1) {
|
||||
x.setAttribute('selected', '');
|
||||
x.selected = true;
|
||||
}
|
||||
else {
|
||||
x.removeAttribute('selected');
|
||||
x.selected = false;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user