Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions core/src/components/datetime/datetime.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1194,6 +1194,15 @@ export class Datetime implements ComponentInterface {
componentDidLoad() {
const { el, intersectionTrackerRef } = this;

/**
* If a value was assigned before componentDidLoad (e.g. by Angular NgModel or
* zone.js microtasks before Stencil's watch-ready flag is active), re-process
* the value so working parts and wheels reflect the bound value (#31565).
*/
if (this.hasValue()) {
this.processValue(this.value);
}

/**
* If a scrollable element is hidden using `display: none`,
* it will not have a scroll height meaning we cannot scroll elements
Expand Down
Loading