Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

date-picker / date-range-picker event fixes #550

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

vladrusu
Copy link
Contributor

@vladrusu vladrusu commented Oct 18, 2024

Hi again,

I'm coming with another pull request, this time fixing the date picker components (Date Picker and its parent, Date Range Picker).

More specifically, there are two bugs in the current copoment:

  1. dateChange.coreui.date-picker never triggers due to a typo in the calendar selector (.calendar instead of .calendars)
  2. Again, the dateChange is not triggered when updating the date component via input, only when selecting the date with the mouse.
    This also affects Date Range Picker, because an EVENT_INPUT does NOT trigger an EVENT_START_DATE_CHANGE (_startInput) or an EVENT_END_DATE_CHANGE (_endInput)

I fixed both bugs. I also rearchitectured a bit the Date Picker to listen to the EVENT_START_DATE_CHANGE triggered on the Date Range Picker it extends from and not the one from the Calendar, in order to capture also input events, as I said earlier.

Regards,
Vlad

…to a type (.calendar instead of .calendars)

FIX (date-picker and date-range-picker): EVENT_START_DATE_CHANGE / EVENT_END_DATE_CHANGE were not triggered when updated the date via input
… is empty / deleted

- Better safeguard for inputDateParse / inputDateFormat when date is empty (prevent Invalid Date)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant