Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 52a1a78

Browse files
author
Brian Feister
committed
Upstream merge again...? Not sure why
Conflicts: src/select.js
2 parents 6be81d5 + 45f4f52 commit 52a1a78

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/select.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@
141141
* put as much logic in the controller (instead of the link functions) as possible so it can be easily tested.
142142
*/
143143
.controller('uiSelectCtrl',
144-
['$scope', '$element', '$timeout', '$filter', 'RepeatParser', 'uiSelectMinErr',
145-
function($scope, $element, $timeout, $filter, RepeatParser, uiSelectMinErr) {
144+
['$scope', '$element', '$timeout', 'RepeatParser', 'uiSelectMinErr', 'uiSelectConfig',
145+
function($scope, $element, $timeout, RepeatParser, uiSelectMinErr, uiSelectConfig) {
146146

147147
var ctrl = this;
148148

@@ -178,7 +178,7 @@
178178

179179
// Most of the time the user does not want to empty the search input when in typeahead mode
180180
function _resetSearchInput() {
181-
if (ctrl.resetSearchInput || ctrl.tagging.isActivated ) {
181+
if (ctrl.resetSearchInput || (ctrl.resetSearchInput === undefined && uiSelectConfig.resetSearchInput)) {
182182
ctrl.search = EMPTY_SEARCH;
183183
//reset activeIndex
184184
if (ctrl.selected && ctrl.items.length && !ctrl.multiple) {

0 commit comments

Comments
 (0)