Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@svelte-atoms/core",
"version": "1.0.0-alpha.22",
"version": "1.0.0-alpha.23",
"description": "A modular, accessible, and extensible Svelte UI component library.",
"repository": {
"type": "git",
Expand Down
6 changes: 0 additions & 6 deletions src/lib/components/popover/bond.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export class PopoverBond<
static CONTEXT_KEY = '@atomic-sv/bonds/popover';

#position = $state<ComputePositionReturn>();
#isReady = Promise.withResolvers();

constructor(state: State) {
super(state);
Expand All @@ -69,10 +68,6 @@ export class PopoverBond<
return this.#position;
}

get isReady() {
return this.#isReady.promise;
}

trigger(props: Record<string, unknown> = {}) {
const isButtonElement = isBrowser()
? this.elements.trigger instanceof HTMLButtonElement
Expand Down Expand Up @@ -117,7 +112,6 @@ export class PopoverBond<
...props,
onchange: (node: HTMLElement, position: ComputePositionReturn) => {
this.#position = position;
this.#isReady.resolve(position);
}
});

Expand Down