Skip to content

Commit

Permalink
fixing issue where default value is not being set for flowButtonBar
Browse files Browse the repository at this point in the history
  • Loading branch information
djtoohey committed Sep 27, 2023
1 parent 6b23146 commit 3464b20
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ export default class FlowButtonBar extends LightningElement {
}

updateSelected() {

if (!this.value && this.defaultValue) {
this.handleButtonClick(null, this.defaultValue);
}
if (this.isSelectionMode) {
for (let button of this.template.querySelectorAll('lightning-button')) {
button.variant = this.values.includes(button.value) ? VARIANTS.SELECTED : VARIANTS.UNSELECTED;
Expand Down

0 comments on commit 3464b20

Please sign in to comment.