ods-component-lib 1.18.192 → 1.18.193

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1762,6 +1762,9 @@ var OdsFilter = function OdsFilter(props) {
1762
1762
  };
1763
1763
  var onClearSearch = function onClearSearch() {
1764
1764
  if (props.onClickClear) {
1765
+ if (hasAdvancedFilters) {
1766
+ advancedFilterForm.resetFields();
1767
+ }
1765
1768
  props.onClickClear();
1766
1769
  }
1767
1770
  };
@@ -1790,14 +1793,18 @@ var OdsFilter = function OdsFilter(props) {
1790
1793
  if (hasAdvancedFilters) {
1791
1794
  return Promise.resolve(checkAdvancedFilterValues()).then(function (advancedValues) {
1792
1795
  if (values && advancedValues) {
1793
- props.onFinish && props.onFinish(_extends({}, values, advancedValues));
1796
+ if (props.onFinish) {
1797
+ props.onFinish(_extends({}, values, advancedValues));
1798
+ }
1794
1799
  } else {
1795
1800
  props.onFinishFailed && props.onFinishFailed();
1796
1801
  }
1797
1802
  });
1798
1803
  } else {
1799
1804
  if (values) {
1800
- props.onFinish && props.onFinish(values);
1805
+ if (props.onFinish) {
1806
+ props.onFinish(values);
1807
+ }
1801
1808
  } else {
1802
1809
  props.onFinishFailed && props.onFinishFailed();
1803
1810
  }