File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1298,7 +1298,7 @@ $.extend(Selectize.prototype, {
1298
1298
wasFull = self . isFull ( ) ;
1299
1299
self . items . splice ( self . caretPos , 0 , value ) ;
1300
1300
self . insertAtCaret ( $item ) ;
1301
- if ( ! this . isPending || ( ! wasFull && self . isFull ( ) ) ) {
1301
+ if ( ! self . isPending || ( ! wasFull && self . isFull ( ) ) ) {
1302
1302
self . refreshState ( ) ;
1303
1303
}
1304
1304
@@ -1316,7 +1316,7 @@ $.extend(Selectize.prototype, {
1316
1316
}
1317
1317
1318
1318
// hide the menu if the maximum number of items have been selected or no options are left
1319
- if ( ! $options . length || ( self . settings . maxItems !== null && self . items . length >= self . settings . maxItems ) ) {
1319
+ if ( ! $options . length || self . isFull ( ) ) {
1320
1320
self . close ( ) ;
1321
1321
} else {
1322
1322
self . positionDropdown ( ) ;
You can’t perform that action at this time.
0 commit comments