Skip to content

fix(toast): toast does not warn when positionAnchor is undefined - #28312

Merged
liamdebeasi merged 2 commits into
feature-7.5from
pos-anchor-und
Oct 9, 2023
Merged

fix(toast): toast does not warn when positionAnchor is undefined#28312
liamdebeasi merged 2 commits into
feature-7.5from
pos-anchor-und

Conversation

@liamdebeasi

@liamdebeasi liamdebeasi commented Oct 9, 2023

Copy link
Copy Markdown
Contributor

Issue number: N/A


What is the current behavior?

While testing I noticed that not passing positionAnchor causes a warning to be logged. There is no undefined check in getAnchorElement.

Demo: https://codepen.io/liamdebeasi/pen/xxmMEdB

What is the new behavior?

  • Toast does not warn if positionAnchor is undefined.

Does this introduce a breaking change?

  • Yes
  • No

Other information

@github-actions github-actions Bot added the package: core @ionic/core package label Oct 9, 2023
@liamdebeasi
liamdebeasi marked this pull request as ready for review October 9, 2023 19:21
@liamdebeasi liamdebeasi changed the title fix(toast): undefined positionAnchor does not warn fix(toast): toast does not warn when positionAnchor is undefined Oct 9, 2023
@liamdebeasi
liamdebeasi merged commit c37b3d8 into feature-7.5 Oct 9, 2023
@liamdebeasi
liamdebeasi deleted the pos-anchor-und branch October 9, 2023 20:41
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.

2 participants