kristw commented on a change in pull request #6223: Fix time range filter 
dropdown
URL: 
https://github.com/apache/incubator-superset/pull/6223#discussion_r229410248
 
 

 ##########
 File path: 
superset/assets/src/explore/components/controls/DateFilterControl.jsx
 ##########
 @@ -285,9 +308,10 @@ export default class DateFilterControl extends 
React.Component {
       <Popover id="filter-popover" placement="top" positionTop={0}>
         <div style={{ width: '250px' }}>
           <Tabs
-            defaultActiveKey={this.state.type === TYPES.DEFAULTS ? 1 : 2}
+            defaultActiveKey={this.state.tab === TABS.DEFAULTS ? 1 : 2}
             id="type"
             className="time-filter-tabs"
+            onSelect={() => this.changeTab()}
 
 Review comment:
   ```
   onSelect={this.changeTab}
   ```
   
   `this.changeTab` is already `bind` to `this` so can use without wrapping in 
arrow function

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to