mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-20 14:45:00 +02:00
Remove width test from search placeholder
This commit is contained in:
parent
3a622953dc
commit
5108f190ba
|
@ -2142,7 +2142,6 @@ class Choices {
|
|||
const searchPlaceholder = this.config.searchPlaceholderValue ? this.config.searchPlaceholderValue : this.config.placeholderValue;
|
||||
if (searchPlaceholder) {
|
||||
input.placeholder = searchPlaceholder;
|
||||
input.style.width = getWidthOfInput(input);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -259,7 +259,7 @@
|
|||
|
||||
<label for="choices-placeholder-option">Placeholder option</label>
|
||||
<select class="form-control" name="choices-placeholder-option" id="choices-placeholder-option">
|
||||
<option selected>Press here</option>
|
||||
<option selected placeholder>Press here</option>
|
||||
<option value="one">One</option>
|
||||
<option value="two">Two</option>
|
||||
<option value="three">Three</option>
|
||||
|
|
Loading…
Reference in a new issue