Skip to content

Commit

Permalink
Fixed #4286 - SelectButton: passthrough option
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Aug 18, 2023
1 parent dd74bcd commit dfdc462
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions components/lib/selectbutton/SelectButton.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ export interface SelectButtonContext {
* @defaultValue false
*/
focused: boolean;
/**
* Available option.
*/
option: any;
}

/**
Expand Down
3 changes: 2 additions & 1 deletion components/lib/selectbutton/SelectButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ export default {
return this.ptm(key, {
context: {
active: this.isSelected(option),
disabled: this.isOptionDisabled(option)
disabled: this.isOptionDisabled(option),
option
}
});
},
Expand Down

0 comments on commit dfdc462

Please sign in to comment.