Hi keenthemes,
Ho you go to disabled Select2 in html ? is as any normal HTML5 component like : disabled="disabled ???"
it is unclear and not documented in Select2 html source
Thank you
Hi,
In a recent update, we added the disable state option for Select2 as you can check it here.
Regards.
Hi Sean,
Indeed in the doc the visual components are disabled, but just below : the HTML source code there's nothing referencing a disabled state
<select class="form-select" data-control="select2" data-placeholder="Select an option">
<option></option>
<option value="1">Option 1</option>
<option value="2">Option 2</option>
</select>
<select class="form-select form-select-transparent" data-control="select2" data-placeholder="Select an option">
<option></option>
<option value="1">Option 1</option>
<option value="2">Option 2</option>
</select>
<select class="form-select form-select-solid" data-control="select2" data-placeholder="Select an option">
<option></option>
<option value="1">Option 1</option>
<option value="2">Option 2</option>
</select>
Hi,
Right, the code missing disabled
attribute that needs to be added to the select control. Please try so and it should work as expected. We will fix it shortly.
Regards.