qBittorrent icon indicating copy to clipboard operation
qBittorrent copied to clipboard

WebUI: Use setProperty() for selecting an option

Open JimmyAx opened this issue 1 year ago • 0 comments

This pull request resolves an issue with Safari not properly selecting an <option>. Unlike other browsers Safari does select an <option> when the selected attribute is set using setAttribute(). Using setProperty() solves this issue.

I have tested it by patching qBittorrent version 4.5.2. That means I have not tested the log view as it is not present in that version. Tested with Safari version 16.4 on macOS. I have also verified that it is still working in Firefox 113.0.2.

Closes #17866.

JimmyAx avatar May 27 '23 20:05 JimmyAx