Skip to content

Fix usePortal#44

Merged
gilbarbara merged 1 commit into
mainfrom
hotfix
Jun 26, 2025
Merged

Fix usePortal#44
gilbarbara merged 1 commit into
mainfrom
hotfix

Conversation

@gilbarbara
Copy link
Copy Markdown
Owner

This pull request includes a small change to the src/components/Portal/usePortal.ts file. The container property in defaultProps was updated from document.body to the string 'body' for consistency and potential future flexibility.

@gilbarbara gilbarbara requested a review from Copilot June 26, 2025 12:53
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the default container property for the Portal component to a string literal ('body') instead of a direct reference to document.body to support future flexibility.

  • Change the container property from a DOM reference to a string.
Comments suppressed due to low confidence (1)

src/components/Portal/usePortal.ts:108

  • Ensure that the consuming code correctly handles a string value for the container property, as this change may affect functionality if a DOM element was previously expected. Consider updating type definitions or adding conversion logic as needed.
  container: 'body',

@sonarqubecloud
Copy link
Copy Markdown

@gilbarbara gilbarbara merged commit 6abf42f into main Jun 26, 2025
7 of 9 checks passed
@gilbarbara gilbarbara deleted the hotfix branch June 26, 2025 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants