Skip to content

Commit f4886a0

Browse files
committed
Optional Search Input Placeholder parameter added
1 parent 9eb12a8 commit f4886a0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

select2.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,7 @@ the specific language governing permissions and limitations under the Apache Lic
799799
opts.element.prop("autofocus", false);
800800
if (this.autofocus) this.focus();
801801

802+
this.search.attr("placeholder", opts.searchInputPlaceholder);
802803
},
803804

804805
// abstract
@@ -3313,7 +3314,8 @@ the specific language governing permissions and limitations under the Apache Lic
33133314
selectOnBlur: false,
33143315
adaptContainerCssClass: function(c) { return c; },
33153316
adaptDropdownCssClass: function(c) { return null; },
3316-
nextSearchTerm: function(selectedObject, currentSearchTerm) { return undefined; }
3317+
nextSearchTerm: function(selectedObject, currentSearchTerm) { return undefined; },
3318+
searchInputPlaceholder: ''
33173319
};
33183320

33193321
$.fn.select2.ajaxDefaults = {

0 commit comments

Comments
 (0)