diff --git a/packages/bbui/src/Actions/position_dropdown.ts b/packages/bbui/src/Actions/position_dropdown.ts index ba27ccc1d4..02cda87710 100644 --- a/packages/bbui/src/Actions/position_dropdown.ts +++ b/packages/bbui/src/Actions/position_dropdown.ts @@ -25,6 +25,12 @@ export interface Styles { top: number } +export type UpdateHandler = ( + anchorBounds: DOMRect, + elementBounds: DOMRect, + styles: Styles +) => Styles + interface Opts { anchor?: HTMLElement align: string @@ -33,11 +39,7 @@ interface Opts { minWidth?: number useAnchorWidth: boolean offset: number - customUpdate?: ( - anchorBounds: DOMRect, - elementBounds: DOMRect, - styles: Styles - ) => Styles + customUpdate?: UpdateHandler resizable: boolean wrap: boolean } diff --git a/packages/bbui/src/Form/Core/CheckboxGroup.svelte b/packages/bbui/src/Form/Core/CheckboxGroup.svelte index c318a3156b..5eac359d26 100644 --- a/packages/bbui/src/Form/Core/CheckboxGroup.svelte +++ b/packages/bbui/src/Form/Core/CheckboxGroup.svelte @@ -1,3 +1,8 @@ + + +import context from "src/context" +