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 onHide not calling delegate function #1024

Open
bensullivan opened this issue Jan 26, 2025 · 0 comments
Open

Date Picker onHide not calling delegate function #1024

bensullivan opened this issue Jan 26, 2025 · 0 comments

Comments

@bensullivan
Copy link

Describe the bug
Hi - I am trying to use TypeScript (5.7.2) to call a function when the datepicker hides. For some reason it is not and I am not sure why.

To Reproduce

const $datepickerEl: HTMLInputElement = document.getElementById('myDatePicker') as HTMLInputElement;

const options: DatepickerOptions = {
    autohide: true,
    onHide: () => { console.log('Datepicker now hiding!'); }
};

const datepicker: DatepickerInterface = new Datepicker(
    $datepickerEl,
    options,
    null
);

Expected behavior
Function delegated to by onHide should execute.

Desktop (please complete the following information):

  • OS: macos 15.2
  • Browser chrome
  • Version 132
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

No branches or pull requests

1 participant