@@ -133,9 +133,7 @@ export class InteractiveFilterDialog extends BoxPanel {
133133
134134 const value = this . _mode === 'condition'
135135 ? < Transform . FilterValue > this . _filterValue
136- : this . _uniqueValueStateManager . getIndices ( this . region , this . _columnIndex ) . map ( row => {
137- return this . _uniqueValueGrid . dataModel ! . data ( 'body' , row , 0 ) ;
138- } ) ;
136+ : this . _uniqueValueStateManager . getValues ( this . region , this . _columnIndex ) ;
139137
140138 // Construct transform
141139 const transform : Transform . TransformSpec = {
@@ -1018,7 +1016,7 @@ export class UniqueValueStateManager {
10181016 MessageLoop . postMessage ( this . _grid . viewport , msg ) ;
10191017 }
10201018
1021- getIndices ( region : DataModel . CellRegion , columnIndex : number ) : any [ ] {
1019+ getValues ( region : DataModel . CellRegion , columnIndex : number ) : any [ ] {
10221020 const key = this . getKeyName ( region , columnIndex )
10231021 if ( this . _state . hasOwnProperty ( key ) ) {
10241022 return Array . from ( this . _state [ key ] )
@@ -1048,10 +1046,10 @@ class UniqueValueGridMouseHandler extends BasicMouseHandler {
10481046 //@ts -ignore added so we don't have to add basicmousehandler.ts fork
10491047 onMouseDown ( grid : DataGrid , event : MouseEvent ) : void {
10501048 const hit = grid . hitTest ( event . clientX , event . clientY ) ;
1051-
1052- let value = hit . row
1049+ const row = hit . row ;
10531050 const colIndex = this . _filterDialog . columnIndex ;
1054- const region = this . _filterDialog . region
1051+ const region = this . _filterDialog . region ;
1052+ const value = grid . dataModel ! . data ( 'body' , row , 0 ) ;
10551053
10561054 if ( this . _uniqueValuesSelectionState . has ( region , colIndex , value ) ) {
10571055 this . _uniqueValuesSelectionState . remove ( region , colIndex , value )
0 commit comments