Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

docs(overlays): clarify how to remove an overlay #28989

Merged
merged 1 commit into from
Feb 8, 2024
Merged

Conversation

liamdebeasi
Copy link
Contributor

@liamdebeasi liamdebeasi commented Feb 7, 2024

In #28981 there was some confusion surrounding how to remove an overlay from the DOM if it was never presented. The dismiss method will remove the overlay from the DOM, but only if the overlay is visible. Otherwise, it's a no-op.

This PR updates the dismiss method docs for each overlay component to note that developers can use the browser's remove method to remove the element from the DOM.

@github-actions github-actions bot added the package: core @ionic/core package label Feb 7, 2024
@liamdebeasi liamdebeasi marked this pull request as ready for review February 7, 2024 14:21
@liamdebeasi liamdebeasi requested a review from a team as a code owner February 7, 2024 14:21
@liamdebeasi liamdebeasi requested review from thetaPC and removed request for a team February 7, 2024 14:21
Copy link
Contributor

@thetaPC thetaPC left a comment

Choose a reason for hiding this comment

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

LGTM

@liamdebeasi liamdebeasi added this pull request to the merge queue Feb 8, 2024
Merged via the queue into main with commit e833ad4 Feb 8, 2024
46 checks passed
@liamdebeasi liamdebeasi deleted the clarify-remove branch February 8, 2024 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants