Skip to content

Commit 9d784dd

Browse files
committed
fix(datetime-button): remove async/await from componentOnReady
1 parent be319d6 commit 9d784dd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core/src/components/datetime-button/datetime-button.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export class DatetimeButton implements ComponentInterface {
124124
overlayEl.classList.add('ion-datetime-button-overlay');
125125
}
126126

127-
componentOnReady(datetimeEl, async () => {
127+
componentOnReady(datetimeEl, () => {
128128
const datetimePresentation = (this.datetimePresentation = datetimeEl.presentation || 'date-time');
129129

130130
/**
@@ -137,7 +137,7 @@ export class DatetimeButton implements ComponentInterface {
137137
* to re-render the displayed
138138
* text in the buttons.
139139
*/
140-
await this.setDateTimeText();
140+
this.setDateTimeText();
141141
addEventListener(datetimeEl, 'ionValueChange', this.setDateTimeText);
142142

143143
/**

0 commit comments

Comments
 (0)