Topic: Why my title's form doesnt stay
Eddie Nguyen asked 5 months ago
**
**> The title of the form doesnt stay. It moved even after i enter some
text**
**
First name </div>
<div class="col-md-6 mb-4">
<div data-mdb-input-init class="form-outline">
<input type="text" id="form3Example2" class="form-control" />
<label class="form-label" for="form3Example2">Last name</label>
</div>
</div>
</div>
Bartosz Cylwik staff answered 5 months ago
data-mdb-input-init
is a MDB Standard way of initializing the input component. Did you mean to ask this in the Standard section or are you using the Standard package in vue?
I do not really know what you mean by the title of the form aswell. The label? Our labels are moving upside after the input gains a focus or has a value set. If you dont want this behaviour to happen you can use inputs from our input group examples: https://mdbootstrap.com/docs/standard/forms/input-group/
or use placeholder instead of label
Hope that helps!
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: MDB Vue
- MDB Version: MDB5 5.0.0
- Device: macbook
- Browser: safari
- OS: macos
- Provided sample code: No
- Provided link: No