Browse Source

Using type search in filter control

djhvscf 5 years ago
parent
commit
335e28696a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/extensions/filter-control/bootstrap-table-filter-control.js

+ 1 - 1
src/extensions/filter-control/bootstrap-table-filter-control.js

@@ -20,7 +20,7 @@ $.extend($.fn.bootstrapTable.defaults, {
   filterTemplate: {
   filterTemplate: {
     input (that, field, placeholder, value) {
     input (that, field, placeholder, value) {
       return Utils.sprintf(
       return Utils.sprintf(
-        '<input type="text" class="form-control bootstrap-table-filter-control-%s search-input" style="width: 100%;" placeholder="%s" value="%s">',
+        '<input type="search" class="form-control bootstrap-table-filter-control-%s search-input" style="width: 100%;" placeholder="%s" value="%s">',
         field,
         field,
         'undefined' === typeof placeholder ? '' : placeholder,
         'undefined' === typeof placeholder ? '' : placeholder,
         'undefined' === typeof value ? '' : value
         'undefined' === typeof value ? '' : value