File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
lib/web/jquery/editableMultiselect/js Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ define([
116116 e . preventDefault ( ) ;
117117 o . toggleAddButton && buttonAdd . hide ( ) ;
118118 container . show ( ) ;
119- input . focus ( ) ;
119+ input . trigger ( 'focus' ) ;
120120 if ( input . parents ( o . mselectListClass ) . length ) {
121121 list . scrollTop ( list . height ( ) ) ;
122122 }
@@ -162,7 +162,7 @@ define([
162162 . end ( ) ;
163163
164164 list . children ( '.' + o . mselectListItemClass + '' ) . length
165- ? list . children ( '.' + o . mselectListItemClass + ': last' ) . after ( item )
165+ ? list . children ( '.' + o . mselectListItemClas ) . last ( ) . after ( item )
166166 : list . prepend ( item ) ;
167167
168168 select . append ( '<option value="' + v + '" selected="selected">' + v + '</option>' ) ;
@@ -181,12 +181,13 @@ define([
181181 list [ list . children ( ) . length ? 'show' : 'hide' ] ( ) ;
182182
183183 if ( ch . length >= size && ! list . hasClass ( o . mselectItemsWrapperOverflowClass ) ) {
184- list . height ( list . children ( '.' + o . mselectListItemClass + ':first' )
184+ list . height ( list . children ( '.' + o . mselectListItemClass )
185+ . first ( )
185186 . outerHeight ( true ) * size )
186187 . addClass ( o . mselectItemsWrapperOverflowClass ) ;
187188 }
188189 } ;
189190 reset ( ) ;
190191 } ) . end ( ) ;
191192 } ;
192- } ) ;
193+ } ) ;
You can’t perform that action at this time.
0 commit comments