We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8450564 commit c37b3d8Copy full SHA for c37b3d8
core/src/components/toast/toast.tsx
@@ -412,6 +412,14 @@ export class Toast implements ComponentInterface, OverlayInterface {
412
private getAnchorElement(): HTMLElement | undefined {
413
const { position, positionAnchor, el } = this;
414
415
+ /**
416
+ * If positionAnchor is undefined then
417
+ * no anchor should be used when presenting the toast.
418
+ */
419
+ if (positionAnchor === undefined) {
420
+ return;
421
+ }
422
+
423
if (position === 'middle' && positionAnchor !== undefined) {
424
printIonWarning('The positionAnchor property is ignored when using position="middle".', this.el);
425
return undefined;
0 commit comments