Skip to content

Commit

Permalink
FIO-7112: fixed an issue where value component still shows calendar w…
Browse files Browse the repository at this point in the history
…idget after the condition base component is changed to the component without widget
  • Loading branch information
TanyaGashtold committed Nov 13, 2023
1 parent 38f4d53 commit bcb87fb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/_classes/component/Component.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,12 @@ export default class Component extends Element {
return {
operators: ['isEqual', 'isNotEqual', 'isEmpty', 'isNotEmpty'],
valueComponent() {
return { type: 'textfield' };
return {
type: 'textfield',
widget: {
type: 'input'
}
};
}
};
}
Expand Down
6 changes: 6 additions & 0 deletions src/components/textfield/TextField.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ export default class TextFieldComponent extends Input {
return {
...super.conditionOperatorsSettings,
operators: [...super.conditionOperatorsSettings.operators, 'includes', 'notIncludes', 'endsWith', 'startsWith'],
valueComponent(classComp) {
return {
...classComp,
type: 'textfield',
};
}
};
}

Expand Down

0 comments on commit bcb87fb

Please sign in to comment.