mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
Add option to not re-focus ComboBox
when invoking clear()
(#1000)
* feat(combo-box): add option to clear accessor to not re-focus input Closes #994 * yarn build:lib * test(combo-box): validate clear accessor params * docs(combo-box): add clear without focus to "Clear selection" example
This commit is contained in:
parent
d4dd33e28c
commit
37f19d2171
7 changed files with 57 additions and 43 deletions
2
types/ComboBox/ComboBox.svelte.d.ts
vendored
2
types/ComboBox/ComboBox.svelte.d.ts
vendored
|
@ -158,5 +158,5 @@ export default class ComboBox extends SvelteComponentTyped<
|
|||
/**
|
||||
* Clear the combo box programmatically
|
||||
*/
|
||||
clear: () => void;
|
||||
clear: (options?: { focus?: boolean }) => void;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue