mdb-date-picker console warning

web
mobile

Topic: mdb-date-picker console warning

Olivier Flegeau pro premium asked 2 months ago

Hi you have a warning in console when you use mdb-date-picker, even in your NgAdminPro exemple

it is the console message : "[DOM] Found 2 elements with non-unique id #pickerInput: (More info: https://goo.gl/9p2vKq)

input autocomplete=​"off" class=​"form-control mydp-date ng-untouched ng-pristine ng-valid" id=​"pickerInput" type=​"text" ng-reflect-klass=​"form-control mydp-date" ng-reflect-ng-class=​"[object Object]​" ng-reflect-ng-style=​"[object Object]​" ng-reflect-is-disabled=​"false" ng-reflect-model aria-label=​"Date input field" maxlength=​"10" placeholder=​"Selected date" tabindex=​"0" style=​"font-size:​ 1rem;​">​


Mateusz Łubianka staff answered 2 months ago

Hi @Olivier Flegeau,

I can't see this warning on this site: https://mdbootstrap.com/docs/jquery/forms/date-picker/ Could you tell more about this? I think your link has wrong adress.

Best,


MDWebservices pro answered 2 months ago

Hi @Mateusz Łubianka

We have this error also, this if for angular version that this error appears and it appears on your website for the same page as you linked, but for the angular version. https://mdbootstrap.com/docs/angular/forms/date-picker/

We just need to be able to change the id of the mdb-date-picker component, is this possible as i dont seem to see a way on any of your documentation?

Many Thanks

Louis Barker


Mateusz Łubianka staff commented 2 months ago

@MDWebservices,

I created a task to check it and if it possible, our team will fix this. Thank you for this post.

Best


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: Other
  • MDB Version: -
  • Device: MAC
  • Browser: Chrome
  • OS: OS catalina
  • Provided sample code: No
  • Provided link: Yes