@visns-studio/visns-components 1.8.1 → 1.8.2
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.
|
@@ -425,7 +425,12 @@ const DataGrid = forwardRef(
|
|
|
425
425
|
onChange={handleChangeSearch}
|
|
426
426
|
/>
|
|
427
427
|
</div>
|
|
428
|
-
) :
|
|
428
|
+
) : (
|
|
429
|
+
<div
|
|
430
|
+
className="filterInput--alt"
|
|
431
|
+
style={{ height: "37px" }}
|
|
432
|
+
></div>
|
|
433
|
+
);
|
|
429
434
|
};
|
|
430
435
|
|
|
431
436
|
const handleCoding = (c, data) => {
|
|
@@ -315,7 +315,10 @@ function Form(props) {
|
|
|
315
315
|
if (["create", "update"].includes(formType)) {
|
|
316
316
|
fields.forEach((item) => {
|
|
317
317
|
if (item.required === true) {
|
|
318
|
-
if (
|
|
318
|
+
if (
|
|
319
|
+
formData[item.id] === "" ||
|
|
320
|
+
formData[item.id] === undefined
|
|
321
|
+
) {
|
|
319
322
|
if (
|
|
320
323
|
item.hasOwnProperty("required_check") &&
|
|
321
324
|
item.required_check !== ""
|
|
@@ -368,7 +371,6 @@ function Form(props) {
|
|
|
368
371
|
" is a required field.<br/>"
|
|
369
372
|
)
|
|
370
373
|
) {
|
|
371
|
-
console.info(item.label, item.id, formData);
|
|
372
374
|
validation +=
|
|
373
375
|
item.label +
|
|
374
376
|
" is a required field.<br/>";
|
package/package.json
CHANGED