Skip to content

Commit

Permalink
Merge pull request #1466 from djtoohey/flowButtonbar-default-value-no…
Browse files Browse the repository at this point in the history
…t-being-set-fix

fixing issue where default value is not being set for flowButtonBar
  • Loading branch information
alexed1 authored Oct 6, 2023
2 parents 933ce0b + 3464b20 commit 7b0d062
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 7b0d062

Please sign in to comment.