Fixed #4286 - SelectButton: passthrough option

pull/4295/head
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
}
});
},