Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix(PopoverDirective): fixed a bug where dynamically created <forge-popover> elements could not be accessed when a <forge-dialog> element is open #67

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

DRiFTy17
Copy link
Collaborator

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added: N
  • Docs have been added / updated: N
  • Does this PR introduce a breaking change? N
  • I have linked any related GitHub issues to be closed when this PR is merged? N

Describe the new behavior?

Previously when opening a <forge-popover> via the forgePopover Angular directive from <forge-dialog>, the <forge-popover> itself could be interacted with due to the usage of native <dialog> within <forge-dialog> making the rest of the page inert.

Now the forgePopover directive will attempt to locate the host element via closest(<selector>) and fall back to the <body> if none are found. This ensures the <forge-popover> is properly added as a child of the <forge-dialog> so that it can be interacted with.

…popover>` elements could not be accessed when a `<forge-dialog>` element is open
@DRiFTy17 DRiFTy17 added the patch Increment the patch version when merged label Oct 30, 2024
@DRiFTy17 DRiFTy17 requested a review from a team as a code owner October 30, 2024 17:25
Copy link

stackblitz bot commented Oct 30, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@DRiFTy17 DRiFTy17 added the skip-release Preserve the current version when merged label Nov 13, 2024
@DRiFTy17 DRiFTy17 merged commit bc9d3fc into main Nov 13, 2024
5 checks passed
@DRiFTy17 DRiFTy17 deleted the fix/popover-directive-host-element branch November 13, 2024 18:30
Copy link
Contributor

🚀 PR was released in v4.2.0 🚀

@github-actions github-actions bot added the released This issue/pull request has been released. label Nov 13, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
patch Increment the patch version when merged released This issue/pull request has been released. skip-release Preserve the current version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants