Skip to content

fix(angular): add focusTrap prop to modal and popover#29729

Merged
sean-perkins merged 2 commits intomainfrom
sp/angular-popover-focus-trap
Jul 24, 2024
Merged

fix(angular): add focusTrap prop to modal and popover#29729
sean-perkins merged 2 commits intomainfrom
sp/angular-popover-focus-trap

Conversation

@sean-perkins
Copy link
Contributor

@sean-perkins sean-perkins commented Jul 22, 2024

Issue number: resolves #29728


What is the current behavior?

The focusTrap property was missed when adding focus trapping configuration to the modal and popover. This results in a type error when developers attempt to assign to the property.

What is the new behavior?

  • Adds focusTrap property to ion-modal and ion-popover for the angular component wrappers
  • Resolves type warnings when using the property in angular

Does this introduce a breaking change?

  • Yes
  • No

Other information

Dev-build: 8.2.6-dev.11721672792.195afb09

@vercel
Copy link

vercel bot commented Jul 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ionic-framework ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2024 3:19pm

@github-actions github-actions bot added the package: angular @ionic/angular package label Jul 22, 2024
@sean-perkins sean-perkins changed the title fix(angular): add focusTrap prop to popover fix(angular): add focusTrap prop to modal and popover Jul 22, 2024
@sean-perkins sean-perkins marked this pull request as ready for review July 22, 2024 15:42
@sean-perkins sean-perkins requested a review from a team as a code owner July 22, 2024 15:42
@sean-perkins sean-perkins requested review from brandyscarney, rugoncalves and thetaPC and removed request for rugoncalves July 22, 2024 15:42
@sean-perkins sean-perkins enabled auto-merge July 22, 2024 17:52
@liamdebeasi
Copy link
Contributor

liamdebeasi commented Jul 24, 2024

any update @brandyscarney ? ✨

@sean-perkins
Copy link
Contributor Author

+1 @brandyscarney 👀

Copy link
Member

@brandyscarney brandyscarney left a comment

Choose a reason for hiding this comment

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

Tested in a new Angular starter and confirmed the Can't bind to 'focusTrap' since it isn't a known property of 'ion-popover'. error disappears with the dev build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: angular @ionic/angular package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Modal and Popover is missing focusTrap option in Angular

3 participants