Skip to content

Commit

Permalink
Allow to clear a selection on the tabs configurator
Browse files Browse the repository at this point in the history
  • Loading branch information
engPabloMartinez committed Jul 26, 2024
1 parent ca60d32 commit 39152a9
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ export default class OD_FlowTabsConfigurationTabs extends LightningModal {
}

get booleanOptions() {
const result = [];
const result = [
{
label: '',
value: -1,
},
];

// variables
const variables = this.builderContext.variables;
Expand Down Expand Up @@ -125,7 +130,7 @@ export default class OD_FlowTabsConfigurationTabs extends LightningModal {
// handler methods
// =================================================================
handleUpdateField(event) {
const value = event.detail.value;
const value = event.detail.value === -1 ? null : event.detail.value;
const tabValue = event.target.dataset.value;
const name = event.target.name;

Expand Down

0 comments on commit 39152a9

Please sign in to comment.