djhi / meteor-autoform-materialize

DEPRECATED - Meteor AutoForm Materialize templates
https://atmospherejs.com/mozfet/autoform-materialize
MIT License
47 stars 29 forks source link

Input label overlapping with dynamic generated value #78

Closed cmastery closed 8 years ago

cmastery commented 8 years ago

Greetings! I have the following html (a modal):

                <div class="input-field col s6">
                    <input id="inputIdName" type="text" class="validate" name="sliderTitlu"/>
                    <label for="inputIdName" class="active" id="inputIdNameLabel">Name</label>
                </div>

And I generate input value by $.getJSON function, and the value of input and the label is overlapped.

I have also tried to fix it with class=active on the label and $("#inputIdNameLabel").focus(), but with no working result.