Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bootstrap class "form-control" not added for input #18

Open
veyronfei opened this issue Jan 6, 2016 · 1 comment
Open

bootstrap class "form-control" not added for input #18

veyronfei opened this issue Jan 6, 2016 · 1 comment

Comments

@veyronfei
Copy link

First, I would like to thank you so much for providing this awesome packages, it saves me a lot of time.
However I noticed maybe a small bug for the class.

I am using template bootstrap3-horizontal for my autoform.
When I add {{> afQuickField name="address" type="googleplace" opts=optsGoogleplace template="bootstrap3-horizontal" label-class="col-sm-2" input-col-class="col-sm-8"}} to my html file, it's redered as without the class "form-control".

This is causing inconsistent layout with the rest of autoform fields.

@knoid
Copy link

knoid commented Oct 6, 2016

I'm adding it with the following code, note the autocomplete: off so the browser doesn't show the built-in suggestions.

const schema = new SimpleSchema({
  near: {
    type: new SimpleSchema({
      fullAddress: { type: String },
      geometry: { type: GeoJSONPoint } // a SimpleSchema I defined before
    }),
    autoform: {
      type: 'googleplace',
      afFieldInput: {
        'class': 'form-control',
        autocomplete: 'off'
      }
    }
  }
});

Hope it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants