Topic: Datepicker date change event do not fires when value cleared out.

Realmonitor Ltd priority asked 2 years ago


I expect the "dateChange.mdb.datepicker" event fire, when user clicks on "CLEAR" button and closing dialog.

No 'dateChange.mdb.datepicker' event fires, when value is emptied out on the UI.


Michał Duszak staff answered 2 years ago


Hello, thank you for your feedback.

dateChange.mdb.datepicker event fires whenever the date is changed. When closing dialog, the close.mdb.datepicker event fires. At the time there is no event which will cover the Clear operation itself.


Realmonitor Ltd priority commented 2 years ago

I would argue, when date changing from a normal date type valid value into a NULL is a change, which should be reflected in event call


Michał Duszak staff commented 2 years ago

For native input you can simply listen to an 'input' event. https://mdbootstrap.com/snippets/standard/m-duszak/3524793



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 3.10.1
  • Device: Laptop
  • Browser: ChromeVersion 96.0.4664.93
  • OS: Linux Pop OS
  • Provided sample code: No
  • Provided link: No