Merge branch 'feature-7.5' into FW-4612

This commit is contained in:
Liam DeBeasi
2023-10-09 17:11:47 -04:00
committed by GitHub

View File

@@ -412,6 +412,14 @@ export class Toast implements ComponentInterface, OverlayInterface {
private getAnchorElement(): HTMLElement | undefined {
const { position, positionAnchor, el } = this;
/**
* If positionAnchor is undefined then
* no anchor should be used when presenting the toast.
*/
if (positionAnchor === undefined) {
return;
}
if (position === 'middle' && positionAnchor !== undefined) {
printIonWarning('The positionAnchor property is ignored when using position="middle".', this.el);
return undefined;