mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
chore: sync with main
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user