Skip to content

Commit

Permalink
refactor(popper): prefer function for boundary
Browse files Browse the repository at this point in the history
  • Loading branch information
segunadebayo committed Sep 5, 2024
1 parent 4806ac0 commit 54094ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/angry-bananas-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@zag-js/popper": minor
---

Refactor `boundary` to only support function that returns an element.
2 changes: 1 addition & 1 deletion packages/utilities/popper/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export interface PositioningOptions {
/**
* The overflow boundary of the reference element
*/
boundary?: Boundary | (() => Boundary)
boundary?: () => Boundary
/**
* Options to activate auto-update listeners
*/
Expand Down

0 comments on commit 54094ab

Please sign in to comment.