Skip to content

Commit

Permalink
fix(select): updating the changeset comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Maharshi Alpesh authored and Maharshi Alpesh committed Sep 9, 2024
1 parent a2a5468 commit bd7666b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .changeset/clean-eagles-clean.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"@nextui-org/select": patch
---

Currently the select component do not pass the portalContainer prop to it's child pop-over. The pop-over hence takes default value of portalContainer i.e document.body. Due to this, when parent of the select component is scrollable, the scroll closes the pop-over immediately due to the scroll. This makes it impossible for the pop-over to open.The PR adds the portalContainer prop to the pop-over.
Currently, the select component does not pass the `portalContainer` prop to its child pop-over. Consequently, the pop-over defaults to using `document.body` as the `portalContainer`. This causes the pop-over to close immediately when the parent of the select component is scrollable. This fix ensures that the `portalContainer` prop is correctly passed to the pop-over, addressing the issue.

0 comments on commit bd7666b

Please sign in to comment.