Fixed #4286 - SelectButton: passthrough option
parent
dd74bcd821
commit
dfdc462fe9
|
@ -93,6 +93,10 @@ export interface SelectButtonContext {
|
|||
* @defaultValue false
|
||||
*/
|
||||
focused: boolean;
|
||||
/**
|
||||
* Available option.
|
||||
*/
|
||||
option: any;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -66,7 +66,8 @@ export default {
|
|||
return this.ptm(key, {
|
||||
context: {
|
||||
active: this.isSelected(option),
|
||||
disabled: this.isOptionDisabled(option)
|
||||
disabled: this.isOptionDisabled(option),
|
||||
option
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue