ywana-core8 0.0.946 → 0.0.947
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.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +4 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +4 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/table.js +5 -2
package/dist/index.umd.js
CHANGED
@@ -1856,6 +1856,7 @@
|
|
1856
1856
|
}
|
1857
1857
|
function clear() {
|
1858
1858
|
setForm({});
|
1859
|
+
if (onFilter) onFilter({});
|
1859
1860
|
}
|
1860
1861
|
var dirty = Object.keys(form).length > 0; // dirty if there are filters set
|
1861
1862
|
|
@@ -1866,9 +1867,10 @@
|
|
1866
1867
|
filterable = _ref5.filterable,
|
1867
1868
|
onFilter = _ref5.onFilter,
|
1868
1869
|
options = _ref5.options;
|
1870
|
+
var value = form[id] ? form[id] : '';
|
1869
1871
|
var field = options ? /*#__PURE__*/React__default["default"].createElement(DropDown, {
|
1870
1872
|
id: id,
|
1871
|
-
value:
|
1873
|
+
value: value,
|
1872
1874
|
options: options,
|
1873
1875
|
onChange: function onChange(id, value) {
|
1874
1876
|
return changeFilter(id, value, onFilter);
|
@@ -1876,7 +1878,7 @@
|
|
1876
1878
|
outlined: true
|
1877
1879
|
}) : /*#__PURE__*/React__default["default"].createElement(TextField, {
|
1878
1880
|
id: id,
|
1879
|
-
value:
|
1881
|
+
value: value,
|
1880
1882
|
onChange: function onChange(id, value) {
|
1881
1883
|
return changeFilter(id, value, onFilter);
|
1882
1884
|
},
|