chore: sync with main

This commit is contained in:
Liam DeBeasi
2023-05-16 10:26:41 -04:00
1069 changed files with 287 additions and 61 deletions

View File

@ -75,6 +75,18 @@ export class DatetimeButton implements ComponentInterface {
return;
}
/**
* The element reference must be an ion-datetime. Print an error
* if a non-datetime element was provided.
*/
if (datetimeEl.tagName !== 'ION-DATETIME') {
printIonError(
`Expected an ion-datetime instance for ID '${datetime}' but received '${datetimeEl.tagName.toLowerCase()}' instead.`,
datetimeEl
);
return;
}
/**
* Since the datetime can be used in any context (overlays, accordion, etc)
* we track when it is visible to determine when it is active.