Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 16 shows <optgroup> tags label two times

Tags:

ios

optgroup

I tried to open https://developer.mozilla.org/en-US/docs/Web/HTML/Element/optgroup this link on any iPhone device except 16.0. It is showing properly.

That means for this code below:

<label for="dino-select">Choose a dinosaur:</label>
<select id="dino-select">
    <optgroup label="Theropods">
        <option>Tyrannosaurus</option>
        <option>Velociraptor</option>
        <option>Deinonychus</option>
    </optgroup>
    <optgroup label="Sauropods">
        <option>Diplodocus</option>
        <option>Saltasaurus</option>
        <option>Apatosaurus</option>
    </optgroup>
</select>

the output optgroup shows options properly.

But when trying in iOS 16.0 (iPhone 13 pro max), then it is showing as this:-

https://i.sstatic.net/MHw35.png

That mean, for label text, it is showing two times. label="Theropods" and label="Sauropods" is shown two times.

Don't know how to solve it! Seems like iOS 16 bug, Any Idea?

like image 470
Shohid_bd Avatar asked Oct 25 '25 02:10

Shohid_bd


1 Answers

It was regression due to iOS improving in showing options and values and the fix is already pushed to Webkit as Pull Request below - https://github.com/WebKit/WebKit/pull/6090

like image 146
Ahmad Saleem Avatar answered Oct 26 '25 18:10

Ahmad Saleem



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!