Topic: mdbInput unable to use ngModel

rnelson11 priority asked 2 years ago

Expected behavior To be able to bind input fields to ngModel and have 'active' class added to input. Actual behavior Input is missing the 'active' class when the ngModel and value have data.

Resources (screenshots, code snippets etc.) Angular Variable:

 testVar = 'happy gilmore'; //typescript variable![enter image description here][1]

<input  mdbInput type="text" id="testVar" class="form-control" [value]="testVar" 
 [(ngModel)]="testVar"  />
 <label mdbLabel class="form-label" for="testVar">testVar </label>

Arkadiusz Idzikowski staff commented 2 years ago

@rnelson11 Thank you for reporting this problem, we will take a closer look at that.

rnelson11 priority answered 2 years ago

This issue appears to be fixed in Beta 7. I have already updated to the latest update, and verified that my work around is no longer needed. Thanks!

Please insert min. 20 characters.


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



Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Angular
  • MDB Version: MDB5 1.0.0-beta5
  • Device: PC
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No