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, {
12981298 wasFull = self . isFull ( ) ;
12991299 self . items . splice ( self . caretPos , 0 , value ) ;
13001300 self . insertAtCaret ( $item ) ;
1301- if ( ! this . isPending || ( ! wasFull && self . isFull ( ) ) ) {
1301+ if ( ! self . isPending || ( ! wasFull && self . isFull ( ) ) ) {
13021302 self . refreshState ( ) ;
13031303 }
13041304
@@ -1316,7 +1316,7 @@ $.extend(Selectize.prototype, {
13161316 }
13171317
13181318 // 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 ( ) ) {
13201320 self . close ( ) ;
13211321 } else {
13221322 self . positionDropdown ( ) ;
You can’t perform that action at this time.
0 commit comments