Fixed #4286 - SelectButton: passthrough option

This commit is contained in:
Tuğçe Küçükoğlu 2023-08-18 10:08:25 +03:00
parent dd74bcd821
commit dfdc462fe9
2 changed files with 6 additions and 1 deletions

View file

@ -93,6 +93,10 @@ export interface SelectButtonContext {
* @defaultValue false
*/
focused: boolean;
/**
* Available option.
*/
option: any;
}
/**

View file

@ -66,7 +66,8 @@ export default {
return this.ptm(key, {
context: {
active: this.isSelected(option),
disabled: this.isOptionDisabled(option)
disabled: this.isOptionDisabled(option),
option
}
});
},