Select2 Bug with width 100%
-
Hello everybody,
since the last update I noticed the following error with searchable select fields, these now have a width of 100px directly as elementstyle and are therefore no longer 100% in width. The following code shows the problem:<span class="select2 select2-container select2-container--default select2-container--below select2-container--focus" dir="ltr" style="width: 100px;"<span class="selection"><span class="select2-selection select2-selection--single" role="combobox" aria-haspopup="true" aria-expanded="false" tabindex="0" aria-labelledby="select2-select-7-field-container"><span class="select2-selection__rendered" id="select2-select-7-field-container" title="Testing1234">Testing1234</span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span></span></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>A similar case was discussed here: https://wordpress.org/support/topic/search-box-width-set-to-100px-instead-of-100/
It renders it on load and ruins my style. Is there some way to fix this? It can’t be a custom style as it is directly on the span.
Thank you!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Select2 Bug with width 100%’ is closed to new replies.