[Webkit-unassigned] [Bug 255230] Regression: Safari 16.4 and above does not render <option> label/text updates until <select> is focused.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 10 09:21:06 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=255230

--- Comment #2 from Josef Lange <josef.d.lange at gmail.com> ---
Another note:

Given a reference to the `<select>`, this is a partial workaround:

```
const theSelect = document.querySelector('select#theSelect');
const theOption = document.querySelector('option#theOption');

theOption.innerText = 'Some new text';
if (theOption.selected) {
    theSelect.value = null;
    theOption.selected = 'selected';
}
```

The label of the <select> control _does_ update, however the control does not expand to contain the full length of that label until the select control is clicked or otherwise focused.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230410/d49aa81f/attachment.htm>


More information about the webkit-unassigned mailing list