Skip to content

Commit 407b262

Browse files
committed
fix(Form): internal logic fixes * 7
1 parent a536430 commit 407b262

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/components/form/Form/use-field/use-field.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ export function useField<T extends FieldTypes, Props extends CubeFieldProps<T>>(
212212
field,
213213
field?.errors?.length,
214214
field?.status,
215-
field?.inputValue,
215+
inputValue,
216216
fieldId,
217217
fieldName,
218218
isRequired,

src/components/form/Form/use-form.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,10 @@ export class CubeFormInstance<
162162
const field = this.fields[name];
163163

164164
if (!field || isEqual(value, inputOnly ? field.inputValue : field.value)) {
165+
console.log('! uikit equal', field, value, inputOnly);
165166
return;
167+
} else {
168+
console.log('! uikit setting', field, value, inputOnly);
166169
}
167170

168171
if (!inputOnly) {

0 commit comments

Comments
 (0)