Skip to content

Unable to close DatePicker with allowInputToggle option after upgrade to v6.10.x #2961

@jifer

Description

@jifer

Prerequisites

  • I have searched for duplicate or closed issues.
  • I have validated my setup against the latest version on StackBlitz.
  • I have read the contributing guidelines.
  • I understand that only sponsored issues will be worked on and that if I wish to sponsor an issue, I will contact the owner FIRST.

Describe the issue

Version 6.10.0 does not allow to close date picker if allowInputToggle option is set to true.
This happens if you use input itself to toggle picker.
Easy to reproduce:

const input = document.getElementById('td');
new TempusDominus(input,  {allowInputToggle: true});
<input type="text" id="td">

v6.10.4 - does not close
https://stackblitz.com/edit/tempus-dominus-v6-simple-setup-u9fdxdf8?file=index.js,index.html

v6.9.11 - works as intended (btw. tempusDominus.version is reporting wrong version: 6.9.4 instead of 6.9.11)
https://stackblitz.com/edit/tempus-dominus-v6-simple-setup-ppzmb8dr?file=index.js,index.html

Also worth mentioning - documentation & REPL was not updated after release. 6.9.4 is the latest version there.
https://getdatepicker.com/6/change-log.html
https://getdatepicker.com/6/repl.html
Image

StackBlitz fork

v6.10.4 - does not close
https://stackblitz.com/edit/tempus-dominus-v6-simple-setup-u9fdxdf8?file=index.js,index.html

v6.9.11 - works as intended
https://stackblitz.com/edit/tempus-dominus-v6-simple-setup-ppzmb8dr?file=index.js,index.html

What operating system(s) are you seeing the problem on?

Windows, Linux

What browser(s) are you seeing the problem on?

Chrome, Firefox

What version of are you using? You can find this information from the sample StackBlitz.

v6.10.4

What your browser's locale? You can find this information from the sample StackBlitz.

any

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions