Skip to content

Commit fb39fba

Browse files
Updates search-field plugin to allow for existing value.
1 parent a62f198 commit fb39fba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/search-field.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
plugin.init = function() {
3434

3535
plugin.settings = $.extend({}, defaults, options);
36-
plugin.currentValue = '';
36+
plugin.currentValue = $input.val();
3737
plugin.onChangeInterval = {};
3838

3939
// Remove autocomplete attribute to prevent native suggestions
@@ -138,4 +138,4 @@
138138
}
139139
});
140140
}
141-
})(jQuery);
141+
})(jQuery);

0 commit comments

Comments
 (0)