Input Animation

web
mobile

Topic: Input Animation

maskinarbeten pro premium asked a week ago

Expected behavior

label should animate to top corner

Actual behavior

I have a page where i have a modal popup with prepopulated input elements but when i populate a text input via

document.getElementById("inputnamehere").value = "test"

and then show the modal the animation is stuck on the input field, if i click the field the animation puts it on the top corner like it should be from the start .. is this a bug or can i trigger the animation somehow?

code for one of my inputs is as follow:

<div class="form-row">
                        <div class="col-md-12 md-form">
                            <label for="editArticleNumberInput">Artikel</label>
                            <input type="text" id="editArticleNumberInput" class="form-control" value="artikel" readonly required>
                        </div>
                    </div>

Resources (screenshots, code snippets etc.)

enter image description here


Marta Szymanska staff answered 7 days ago

Hi,

would you show a live demo of the problem in the snippet here: https://mdbootstrap.com/snippets/? I'll try to help you.

Best, Marta


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: jQuery
  • MDB Version: 4.8.10
  • Device: PC
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No