Skip to content

Commit

Permalink
fix: event
Browse files Browse the repository at this point in the history
  • Loading branch information
anuragxxd committed Jan 21, 2024
1 parent 9419ba0 commit c3877b2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/ecc-utils-design/src/components/details/details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,14 @@ export default class EccUtilsDesignDetails extends LitElement {
</sl-button>`;
}
return html`<sl-button
@click=${() => this.dispatchEvent(new CustomEvent(action.key))}
@click=${() =>
this.dispatchEvent(
new CustomEvent("ecc-utils-button-click", {
detail: {
key: action.key,
},
})
)}
?loading=${action.buttonOptions?.loading}
?disabled=${action.buttonOptions?.disabled}
variant=${ifDefined(action.buttonOptions?.variant)}
Expand Down

0 comments on commit c3877b2

Please sign in to comment.