djhi / meteor-autoform-materialize

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

Input with prepended icon does not work #81

Closed justintech closed 7 years ago

justintech commented 8 years ago

When I do a simple custom autoform trying to get icons on the fields it doesn't work:

<template name="insertItemForm">
    {{#autoForm collection="Items" id="insertItemForm" type="insert" class="card-panel"}}
        {{> afQuickField name="name" icon='create' }}
        {{> afQuickField name="description" type='textarea' icon='person' rows=8 }}
        <button type="submit">Submit</button>
    {{/autoForm}}
</template>

Anyone else have this issue/know a work around?

shyaaam commented 8 years ago

+1.

The issue is this file. <template name="afIcon_materialize"> <i class="material-icons prefix">{{this.icon}}</i> </template>

It should have been <template name="afIcon_materialize"> <i class="material-icons prefix {{this.icon}}"></i> </template>

If you do this, it gets corrected. I request the author to correct this. too lazy to do a pull request.

acomito commented 8 years ago

mine work fine like this:

https://github.com/djhi/meteor-autoform-materialize#input-with-prepended-icon

djhi commented 7 years ago

Future work on this package has been transferred here.