Topic: mdbInput unable to use ngModel

rnelson11 priority asked 3 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]

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

Arkadiusz Idzikowski staff commented 3 years ago

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


rnelson11 priority answered 3 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.

FREE CONSULTATION

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

Status

Resolved

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