fix(toolbar-batch-actions): active prop should be reactive

Follow-up to #1440
This commit is contained in:
Eric Liu 2022-08-14 14:15:44 -07:00
commit dbfbaa8b98
4 changed files with 37 additions and 19 deletions

View file

@ -10,10 +10,10 @@ export interface ToolbarBatchActionsProps
formatTotalSelected?: (totalSelected: number) => string;
/**
* Set to `true` to show the toolbar regardless of row selection
* @default false
* Use a boolean to show or hide the toolbar
* @default undefined
*/
active?: boolean;
active?: undefined | boolean;
}
export default class ToolbarBatchActions extends SvelteComponentTyped<