@rhc-shared-components/packages-table 0.3.5 → 0.3.6

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
@@ -2104,7 +2104,7 @@ var FilterInput = function FilterInput(_ref) {
2104
2104
  searchStr = _useState[0],
2105
2105
  setSearchStr = _useState[1];
2106
2106
 
2107
- var onChange = function onChange(text, event) {
2107
+ var onChange = function onChange(event, text) {
2108
2108
  event.stopPropagation();
2109
2109
  event.preventDefault();
2110
2110
  setSearchStr(function () {
@@ -2129,7 +2129,7 @@ var FilterInput = function FilterInput(_ref) {
2129
2129
  event.preventDefault();
2130
2130
  },
2131
2131
  onClear: function onClear(event) {
2132
- return onChange("", event);
2132
+ return onChange(event, '');
2133
2133
  }
2134
2134
  }));
2135
2135
  };
@@ -1944,7 +1944,7 @@ const FilterInput = ({
1944
1944
  }) => {
1945
1945
  const [searchStr, setSearchStr] = useState('');
1946
1946
 
1947
- const onChange = (text, event) => {
1947
+ const onChange = (event, text) => {
1948
1948
  event.stopPropagation();
1949
1949
  event.preventDefault();
1950
1950
  setSearchStr(() => {
@@ -1968,7 +1968,7 @@ const FilterInput = ({
1968
1968
  event.stopPropagation();
1969
1969
  event.preventDefault();
1970
1970
  },
1971
- onClear: event => onChange("", event)
1971
+ onClear: event => onChange(event, '')
1972
1972
  }));
1973
1973
  };
1974
1974
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhc-shared-components/packages-table",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "description": "project description",
5
5
  "author": "redhatofficial",
6
6
  "license": "MIT",