File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed 
web_src/js/modules/fomantic Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -72,10 +72,10 @@ function updateSelectionLabel(label: HTMLElement) {
7272} 
7373
7474function  onAfterFiltered ( this : any )  { 
75-   const  $dropdown  =  $ ( this ) ; 
75+   const  $dropdown  =  $ ( this ) . closest ( '.ui.dropdown' ) ;   // "this" can be the "ui dropdown" or "<select>" 
7676  const  hideEmptyDividers  =  $dropdown . dropdown ( 'setting' ,  'hideDividers' )  ===  'empty' ; 
7777  const  itemsMenu  =  $dropdown [ 0 ] . querySelector ( '.scrolling.menu' )  ||  $dropdown [ 0 ] . querySelector ( '.menu' ) ; 
78-   if  ( hideEmptyDividers )  hideScopedEmptyDividers ( itemsMenu ) ; 
78+   if  ( hideEmptyDividers   &&   itemsMenu )  hideScopedEmptyDividers ( itemsMenu ) ; 
7979} 
8080
8181// delegate the dropdown's template functions and callback functions to add aria attributes. 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments