@ -182,7 +182,6 @@ export class MultiTreeCombo extends Single {
return self . combo . isViewVisible ( ) ;
return self . combo . isViewVisible ( ) ;
}
}
let shouldComboPopulate = true ;
this . trigger . on ( MultiSelectTrigger . EVENT _FOCUS , ( ) => {
this . trigger . on ( MultiSelectTrigger . EVENT _FOCUS , ( ) => {
self . fireEvent ( MultiTreeCombo . EVENT _FOCUS ) ;
self . fireEvent ( MultiTreeCombo . EVENT _FOCUS ) ;
} ) ;
} ) ;
@ -260,7 +259,7 @@ export class MultiTreeCombo extends Single {
}
}
self . combo . setValue ( self . storeValue ) ;
self . combo . setValue ( self . storeValue ) ;
self . numberCounter . setValue ( self . storeValue ) ;
self . numberCounter . setValue ( self . storeValue ) ;
shouldComboPopulate && s elf . populate ( ) ;
self . populate ( ) ;
self . fireEvent ( MultiTreeCombo . EVENT _BEFORE _POPUPVIEW ) ;
self . fireEvent ( MultiTreeCombo . EVENT _BEFORE _POPUPVIEW ) ;
} ) ;
} ) ;
this . combo . on ( Combo . EVENT _BEFORE _HIDEVIEW , ( ) => {
this . combo . on ( Combo . EVENT _BEFORE _HIDEVIEW , ( ) => {
@ -317,18 +316,10 @@ export class MultiTreeCombo extends Single {
valueFormatter : o . valueFormatter ,
valueFormatter : o . valueFormatter ,
value : { value : o . value || { } } ,
value : { value : o . value || { } } ,
} ) ;
} ) ;
this . numberCounter . on (
MultiSelectCheckSelectedSwitcher . EVENT _TRIGGER _COMBO ,
( ) => {
self . populate ( ) ;
shouldComboPopulate = true ;
}
) ;
this . numberCounter . on (
this . numberCounter . on (
MultiSelectCheckSelectedSwitcher . EVENT _TRIGGER _CHANGE ,
MultiSelectCheckSelectedSwitcher . EVENT _TRIGGER _CHANGE ,
( ) => {
( ) => {
if ( ! self . combo . isViewVisible ( ) ) {
if ( ! self . combo . isViewVisible ( ) ) {
shouldComboPopulate = false ;
self . combo . showView ( ) ;
self . combo . showView ( ) ;
}
}
}
}