Answer the question
In order to leave comments, you need to log in
Is there a way to make the width responsive for the selected item?
Good afternoon.
In general, everything is clear from the title. But I will explain the TK more clearly below.
You must use a browser select. Those. imitating its work with custom elements will not work.
I have something like this structure
<div class="shop__select-wrap">
<select id="sity-shop-select" class="shop__select" name="shop">
<option>Санкт-Петербург</option>
<option>Москва</option>
<option>Екатеринбург</option>
<option>Ростов на дону</option>
</select>
<i class="icon icon_type_arrow_bottom_x icon_size_x ">
<svg class="icon__svg -svg" width="14px" height="14px" xmlns="http://www.w3.org/2000/svg" version="1.1">
<use xlink:href="#arrow_bottom_x"></use>
</svg>
</i>
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question