L
L
lexstile2019-10-30 15:39:38
HTML
lexstile, 2019-10-30 15:39:38

Using the hidden attribute on an option in EDGE?

There is a normal select:

<select>
    <option value="emptyOption" hidden disabled>Выберите сегмент</option>
    <option value="1">Сегмент 1</option>
    <option value="2">Сегмент 2</option>
    <option value="3">Сегмент 3</option>
    <option value="4">Сегмент 4</option>
</select>

In all popular browsers, except EDGE , it is displayed correctly, in the last one an empty space appears at the very bottom of the list, how can I fix this shortcoming without removing the hidden attribute ?
Explorer 11 does not react to the attribute, well, God bless him (applies disabled - this is enough for IE) - for EDGE this option would be acceptable too.
5db983aec747e485760424.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question