Datepicker eventlisteners not working


Topic: Datepicker eventlisteners not working

baasjedave pro premium asked 5 days ago

Expected behavior Give console log and alert output when datepicker opens and value changes

Actual behavior No output

Resources (screenshots, code snippets etc.) https://mdbootstrap.com/snippets/standard/baasjedave/6411143


Kamila Pieńkowska staff answered 2 days ago

I fixed your snippet: https://mdbootstrap.com/snippets/standard/kpienkowska/6412141

You need to add a listener to a div that wraps the component element, not the input inside.


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
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 9.0.0
  • Device: Desktop
  • Browser: Firefox
  • OS: Windows
  • Provided sample code: No
  • Provided link: Yes
Tags
bug