djhi / meteor-autoform-materialize

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

Placeholders overlapping input fields #87

Closed BackSpaceTech closed 7 years ago

BackSpaceTech commented 8 years ago

Materialize requires labels set to "active" when using placeholders, otherwise placeholders and labels will be overlapping: "If you are having trouble with the labels overlapping prefilled content, Try adding class="active" to the label" Can you please consider making a change to your plugin to accommodate this? see: http://materializecss.com/forms.html#input

PhilippSpo commented 8 years ago

If I remember correctly you have to call Materialize.updateTextFields(); once the input is rendered (so in the onRendered callback of your template.

0o-de-lally commented 8 years ago

I confirm that Materialize.updateTextFields() on rendering solves the overlapping issue.

Template.templateName.rendered = function(){
   Materialize.updateTextFields();
 }
djhi commented 7 years ago

Future work on this package has been transferred here.