@@ -346,22 +346,22 @@ class Facet extends React.Component {
346346 let rangeStat = ! this . state . rangeEnabled ? 'Show' : 'Hide' ;
347347 let addedAsVarStat = ! this . props . analysisProps [ this . props . spec . propertyURI ] ? 'Analyze property' : 'Remove from analysis' ;
348348 let d_options = [
349- { key : 5 , text : addedAsVarStat , value : 'asVariable' } ,
350- { key : 6 , text : shuffleStat + ' the list' , value : 'shuffle' } ,
351- { key : 7 , text : rangeStat + ' range options' , value : 'range' } ,
352- { key : 8 , text : 'Download the list' , value : 'download' }
349+ { key : 5 , text : addedAsVarStat , value : 'asVariable' , onClick : this . handleDropDownClick . bind ( this ) } ,
350+ { key : 6 , text : shuffleStat + ' the list' , value : 'shuffle' , onClick : this . handleDropDownClick . bind ( this ) } ,
351+ { key : 7 , text : rangeStat + ' range options' , value : 'range' , onClick : this . handleDropDownClick . bind ( this ) } ,
352+ { key : 8 , text : 'Download the list' , value : 'download' , onClick : this . handleDropDownClick . bind ( this ) }
353353 ] ;
354354 let selectAllFlag = 0 ;
355355 if ( this . props . selection && this . props . selection [ this . props . spec . propertyURI ] && this . props . selection [ this . props . spec . propertyURI ] . length ) {
356- d_options . unshift ( { key : 4 , text : 'Deselect All' , value : 'deselectAll' } ) ;
356+ d_options . unshift ( { key : 4 , text : 'Deselect All' , value : 'deselectAll' , onClick : this . handleDropDownClick . bind ( this ) } ) ;
357357 selectAllFlag = 1 ;
358358 }
359359 //can select maximum 100 items
360360 if ( ! selectAllFlag && this . filteredInstances . length && this . filteredInstances . length < 100 ) {
361- d_options . unshift ( { key : 4 , text : 'Select All' , value : 'selectAll' } ) ;
361+ d_options . unshift ( { key : 4 , text : 'Select All' , value : 'selectAll' , onClick : this . handleDropDownClick . bind ( this ) } ) ;
362362 }
363363 if ( this . props . selection && this . props . selection [ this . props . spec . propertyURI ] && this . props . selection [ this . props . spec . propertyURI ] . length ) {
364- d_options . unshift ( { key : 3 , text : invertStat + ' the selection' , value : 'invert' } ) ;
364+ d_options . unshift ( { key : 3 , text : invertStat + ' the selection' , value : 'invert' , onClick : this . handleDropDownClick . bind ( this ) } ) ;
365365 }
366366 let b_options = [
367367 { key : 1 , icon : 'list layout' , text : 'Check List' , value : 'CheckListBrowser' } ,
@@ -529,7 +529,7 @@ class Facet extends React.Component {
529529 </ div >
530530 < div className = "right stackable menu" >
531531 { this . props . spec . property ?
532- < Dropdown className = "item" title = "actions" selectOnBlur = { false } onChange = { this . handleDropDownClick . bind ( this ) } trigger = { d_trigger } options = { d_options } icon = { null } pointing = "top left" floating />
532+ < Dropdown className = "item" title = "actions" selectOnBlur = { false } trigger = { d_trigger } options = { d_options } icon = { null } pointing = "top left" floating />
533533 : ''
534534 }
535535 { this . props . spec . property ?
0 commit comments