Skip to content

Commit

Permalink
fix(TDOPS-5172): Export "open" prop to children of Popover component (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
hbhong authored Nov 21, 2023
1 parent a90f6e9 commit e798efb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/forty-wolves-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@talend/design-system': patch
---

Export "open" prop to children of Popover component
1 change: 1 addition & 0 deletions packages/design-system/src/components/Popover/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export function Popover({
{typeof children === 'function'
? children({
...popover.getFloatingProps(),
open: popover.open,
setOpen: popover.setOpen,
hide: () => popover.setOpen(false),
})
Expand Down

0 comments on commit e798efb

Please sign in to comment.