themesberg / themesberg/flowbite
Date Picker onHide not calling delegate function
Open
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 9.4k
- Forks
- 862
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the reported behavior with the TypeScript Datepicker example and its autohide and onHide options. Trace the Datepicker hide path to determine why the delegated callback is not executed, then verify that the callback runs when the datepicker hides.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100