I’m trying to understand the behaviour of a dropdown box and date picker I have set up.
I have a date picker, with the initial content set to the current date/time hours and minutes changed to 0
I then have a dropdown which I want to display a list of Flights, with a Flight Date of the value of the Date Picker. In the DB, all flight dates are formatted to be hours and minutes changed to 0 upon their creation, so these values should match.
When the page loads, the date picker is displaying today’s date, as it should be, but the dropdown does not display the content.
If I choose another date, then the list of flights shows up. It won’t load them initially when the page loads though.
Why is it not autopopulating the dropdown when the page loads or setting the value of the date picker?
Even when setting the Default Value of the dropdown to specifically be a search for the first item of the matching flights of the date picker’s value, it still doesn’t show it until I actually pick a date manually, despite the date picker showing today’s date in it.
It’s like the date picker’s value isn’t actually “Set” until I pick it, despite telling it’s initial value to be today’s date. Why??