@dartech/arsenal-ui 1.3.79 → 1.3.80
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/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
@@ -4084,10 +4084,10 @@ const PropertyFiller = ({
|
|
4084
4084
|
clearErrors();
|
4085
4085
|
}, [name, defaultProperyValue, clearErrors, value, setFillOption, fillOption, propertyType, setValue, property]);
|
4086
4086
|
useEffect(() => {
|
4087
|
-
if (!isDirty && property.defaultValue) {
|
4087
|
+
if (!isDirty && property.defaultValue && !value) {
|
4088
4088
|
setValue(name, property.defaultValue);
|
4089
4089
|
}
|
4090
|
-
}, [isDirty, property, name, setValue]);
|
4090
|
+
}, [isDirty, property, name, setValue, value]);
|
4091
4091
|
useEffect(() => {
|
4092
4092
|
var _a;
|
4093
4093
|
if (value === undefined || property.isRequired && value === null && !property.defaultValue) {
|