Skip to content

Commit

Permalink
fix: Now the wrappers can receive the dependentOn
Browse files Browse the repository at this point in the history
  • Loading branch information
veD-tnayrB committed Mar 19, 2024
1 parent 4ccd036 commit 780f892
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/modules/form/ts/components/field/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ export function Control({
* It's necessary to change the field spread.
*/
const attrs = { value, ...field, ...attributes, onChange, model };
field.name === 'simulatProductionModal' && console.log('ATTRS => ', attributes);
return (
<FieldContainer>
<Control {...attrs} />
Expand Down
2 changes: 1 addition & 1 deletion src/modules/form/ts/model/wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class WrappedFormModel extends ReactiveModel<WrappedFormModel> {
const { properties, ...props } = specs;
super({
...props,
properties: ['name', ...properties],
properties: ['name', 'dependentOn', ...properties],
});

this.#parent = parent;
Expand Down

0 comments on commit 780f892

Please sign in to comment.