Detailed description of how to reproduce the problem
When the date picker is rendered with an existing date already set, selecting a new date can trigger onIfxDate twice:
- first with the newly selected date
- immediately after with the previously prefilled date
At the same time, the component’s value still remains on the old prefilled date instead of reflecting the newly selected one.
This causes consumers to receive a stale follow-up event and also prevents them from reliably reading the updated value directly from the component, unless they add custom guards.
Example
document.querySelector<HTMLDivElement>('#app')!.innerHTML = `
<ifx-date-picker
id="date-picker"
value="2026-05-18">
</ifx-date-picker>
`
const datePicker = document.querySelector<HTMLElement & { value?: string }>('#date-picker')
datePicker?.addEventListener('ifxDate', (event) => {
const customEvent = event as CustomEvent
console.log('ifxDate event detail:', customEvent.detail)
console.log('ifxDate element value:', datePicker.value)
})
Logs
ifxDate event detail: {day: 31, month: 5, year: 2026}
main.ts:17 ifxDate element value: 2026-05-18
main.ts:16 ifxDate event detail: {day: 18, month: 5, year: 2026}
main.ts:17 ifxDate element value: 2026-05-18
Upload a screenshot
Describe the development framework
Expected behavior
ifxDate should emit only the newly selected date and value property should contain the new value
Additional information
No response
Detailed description of how to reproduce the problem
When the date picker is rendered with an existing date already set, selecting a new date can trigger onIfxDate twice:
At the same time, the component’s value still remains on the old prefilled date instead of reflecting the newly selected one.
This causes consumers to receive a stale follow-up event and also prevents them from reliably reading the updated value directly from the component, unless they add custom guards.
Example
Logs
Upload a screenshot
Describe the development framework
Expected behavior
ifxDate should emit only the newly selected date and value property should contain the new value
Additional information
No response