Skip to content

Commit 39152a9

Browse files
Allow to clear a selection on the tabs configurator
1 parent ca60d32 commit 39152a9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

force-app/main/default/lwc/odFlowTabsConfigurationTabs/odFlowTabsConfigurationTabs.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ export default class OD_FlowTabsConfigurationTabs extends LightningModal {
2222
}
2323

2424
get booleanOptions() {
25-
const result = [];
25+
const result = [
26+
{
27+
label: '',
28+
value: -1,
29+
},
30+
];
2631

2732
// variables
2833
const variables = this.builderContext.variables;
@@ -125,7 +130,7 @@ export default class OD_FlowTabsConfigurationTabs extends LightningModal {
125130
// handler methods
126131
// =================================================================
127132
handleUpdateField(event) {
128-
const value = event.detail.value;
133+
const value = event.detail.value === -1 ? null : event.detail.value;
129134
const tabValue = event.target.dataset.value;
130135
const name = event.target.name;
131136

0 commit comments

Comments
 (0)