@longline/aqua-ui 1.0.122 → 1.0.124
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/containers/Form/Field.js +1 -1
- package/package.json +1 -1
package/containers/Form/Field.js
CHANGED
|
@@ -149,7 +149,7 @@ var Field = function (props) {
|
|
|
149
149
|
if (hasError && validation)
|
|
150
150
|
return React.createElement(Hint, { ghost: ghost, error: true }, validation);
|
|
151
151
|
if (props.hint)
|
|
152
|
-
return React.createElement(Hint, { optional: props.rules
|
|
152
|
+
return React.createElement(Hint, { optional: props.rules !== null && props.rules !== undefined && !props.rules.required, ghost: ghost }, props.hint);
|
|
153
153
|
return null;
|
|
154
154
|
};
|
|
155
155
|
var dirty = form ? form.dirty : !pristine;
|