This commit is contained in:
Paul Sealock 2020-07-29 10:15:20 +12:00 committed by GitHub
parent 6bcf6510bd
commit d4729a5578
2 changed files with 2 additions and 4 deletions

View File

@ -14,6 +14,7 @@
- Add `<List />` and `<Link />` components to Storybook.
- Add `<Pill />` component.
- Add `key` prop to `<List />` component items.
- Remove unused `ref` from `<DateRangeFilterPicker />`.
## Breaking Changes
- Removed `SplitButton` because its not being used.

View File

@ -1,7 +1,7 @@
/**
* External dependencies
*/
import { Component, createRef } from '@wordpress/element';
import { Component } from '@wordpress/element';
import { __ } from '@wordpress/i18n';
import { Dropdown } from '@wordpress/components';
import PropTypes from 'prop-types';
@ -22,8 +22,6 @@ class DateRangeFilterPicker extends Component {
super( props );
this.state = this.getResetState();
this.dropdownRef = createRef();
this.update = this.update.bind( this );
this.onSelect = this.onSelect.bind( this );
this.isValidSelection = this.isValidSelection.bind( this );
@ -130,7 +128,6 @@ class DateRangeFilterPicker extends Component {
{ __( 'Date Range', 'woocommerce-admin' ) }:
</span>
<Dropdown
ref={ this.dropdownRef }
contentClassName="woocommerce-filters-date__content"
position="bottom"
expandOnMobile