Skip to content

Commit a572b67

Browse files
committed
Merge branch 'master' into develop
2 parents 41890f7 + 8e042dd commit a572b67

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

dist/bootstrap-tagsinput.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
tagClass: function(item) {
66
return 'label label-info';
77
},
8+
focusClass: 'focus',
89
itemValue: function(item) {
910
return item ? item.toString() : item;
1011
},
@@ -379,6 +380,15 @@
379380
}, self));
380381
}
381382

383+
// Toggle the 'focus' css class on the container when it has focus
384+
self.$container.on({
385+
focusin: function() {
386+
self.$container.addClass(self.options.focusClass);
387+
},
388+
focusout: function() {
389+
self.$container.removeClass(self.options.focusClass);
390+
},
391+
});
382392

383393
self.$container.on('keydown', 'input', $.proxy(function(event) {
384394
var $input = $(event.target),

dist/bootstrap-tagsinput.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)