- fixed validating table form field;
- fixed issue with bando preview;
This commit is contained in:
@@ -136,7 +136,8 @@ const Table = ({
|
||||
return (
|
||||
<>
|
||||
<label htmlFor={fieldName} className={classNames({ 'p-error': errors[fieldName] })}>
|
||||
{label}{config.required || config.isRequired ? <span className="appForm__field--required">*</span> : null}
|
||||
{label}{config.required || config.isRequired || (config.validate && config.validate.nonEmptyTables)
|
||||
? <span className="appForm__field--required">*</span> : null}
|
||||
</label>
|
||||
{rows ? <RenderTable columns={columns} data={rows} setRowsFn={updateRows}/> : null}
|
||||
{!isEmpty(columns) && !shouldDisableNewRows
|
||||
|
||||
Reference in New Issue
Block a user