fix: ComboBox, MultiSelect should have multiple translateWithId functions (#1283)

* fix(combo-box): ListBoxField and ListBoxSelection have different `translateWithId` props

* fix(multi-select): ListBoxField and ListBoxSelection have different `translateWithId` props

* Run "yarn build docs"

* test: assert translateWithIdMenu, translateWIthIdInput props
This commit is contained in:
metonym 2022-05-04 07:17:35 -07:00 committed by GitHub
commit ff2e6276db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 176 additions and 66 deletions

View file

@ -128,6 +128,18 @@ export interface MultiSelectProps
*/
translateWithId?: (id: any) => string;
/**
* Override the default translation ids for the menu
* @default undefined
*/
translateWithIdMenu?: (id: any) => string;
/**
* Override the default translation ids for the input
* @default undefined
*/
translateWithIdInput?: (id: any) => string;
/**
* Specify the title text
* @default ""