Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Funny-looking date picker in repeated grid #3888
The issue stems from the order in which operations are happening. The date initialization code assumes that by the time it runs the markup is present in the DOM. This is the case when the page loads, however it is only partially the case when a new iteration is added. This is because in the Ajax response we have the following elements in this order (just mentioning here the relevant ones):
Would there be a way for the server to send those in a different order so changes to the DOM inside the component are done before the component is initialized, as is the case when the page is loaded?
The alternative would be to detect this situation in the date initialization code, and delay the initialization until the DOM is ready, but his has 2 downsides:
What we'd like is the