Bug on Validation


Topic: Bug on Validation

Caio Silva asked 4 years ago

Expected behavior That the Username text has a span element padding

Actual behavior Username text has not a span element padding

Resources (screenshots, code snippets etc.) enter image description here


Mikołaj Smoleński staff commented 4 years ago

Thank you for reporting this issue. The input group integration is now being developed and will appear in the alpha-2 version.

Best regards


cacuestai answered 4 years ago

Hello:

In Beta-1 version, the problem continues for cases where the form is loaded after initial load. When trying,

document.querySelectorAll('.form-outline').forEach((formOutline) => { new mdb.Input(formOutline).update(); });

the following error is reported:

enter image description here

Regards,

Carlos


Mikołaj Smoleński staff commented 4 years ago

If the form is loaded after initial load, instead of updating You will have to initialize it. Please change .update(); to .init(); in Your code. It should fix the issue.

Best regards


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: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: -
  • Device: Computer
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No