react-better-html 1.1.180 → 1.1.181
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.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3026,7 +3026,7 @@ function useForm(options) {
|
|
|
3026
3026
|
}, [validate, values]);
|
|
3027
3027
|
const onSubmitFunction = useCallback4(
|
|
3028
3028
|
async (event) => {
|
|
3029
|
-
event
|
|
3029
|
+
event?.preventDefault();
|
|
3030
3030
|
setIsSubmitting.setTrue();
|
|
3031
3031
|
try {
|
|
3032
3032
|
const validationErrors = validateForm();
|
|
@@ -8146,7 +8146,7 @@ var TableComponent = forwardRef15(function Table({
|
|
|
8146
8146
|
const label = valueFromList ? valueFromList.label : value;
|
|
8147
8147
|
let searchPassed = openedFilterColumn.filter === "list" && openedFilterColumn.withSearch ? false : true;
|
|
8148
8148
|
if (openedFilterColumn.filter === "list" && openedFilterColumn.withSearch) {
|
|
8149
|
-
searchPassed = label?.toLowerCase().includes(filterForm.values.search.toLowerCase()) ?? false;
|
|
8149
|
+
searchPassed = label?.toString().toLowerCase().includes(filterForm.values.search.toLowerCase()) ?? false;
|
|
8150
8150
|
}
|
|
8151
8151
|
if (value !== void 0 && value !== null && value !== "" && searchPassed) {
|
|
8152
8152
|
if (previousValue.some((item) => item.value === value)) {
|
|
@@ -8158,7 +8158,7 @@ var TableComponent = forwardRef15(function Table({
|
|
|
8158
8158
|
);
|
|
8159
8159
|
} else
|
|
8160
8160
|
previousValue.push({
|
|
8161
|
-
label,
|
|
8161
|
+
label: label?.toString() ?? "",
|
|
8162
8162
|
value,
|
|
8163
8163
|
count: 1
|
|
8164
8164
|
});
|