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

Meteor Autocomplete Type Error #117

Open
evanglerm opened this issue Dec 2, 2015 · 1 comment
Open

Meteor Autocomplete Type Error #117

evanglerm opened this issue Dec 2, 2015 · 1 comment

Comments

@evanglerm
Copy link

Hi
I am using aldeed:autoform,mizzao:autocomplete and mpowaga:autoform-autocomplete.

I am also using Ionic due to which I am @AutoForm:4.2.2 version.

I get following error when I try to use Autocomplete.

TypeError: Cannot read property 'limit' of undefined
    at new AutoComplete (mizzao_autocomplete.js:171)
    at autocompleteHelpers.autocompleteContainer [as _render] (mizzao_autocomplete.js:570)
    at doRender (view.js:351)

Can u tell me what is the issue here. Everything else in schema etc are very straight forward exactly as your example

Registers2.attachSchema(new SimpleSchema({
  /* ... */
  title: {
    type: String,
    autoform: {
      afFieldInput: {
        type: 'autocomplete-input',
        placeholder: 'Title',
        settings : { position: "top",
                    limit: 5,
                    rules: [
                      {
                        token: '',
                        collection: Registers,
                        field: "config.name",
                        template: Meteor.isClient &&  Template.contactlisting
                      }]}}}},
  content: {
    type: String,
    autoform: {
      afFieldInput: {
        type: 'autocomplete-textarea',
        rows: 4
      }   }  }}));
@mizzao
Copy link
Collaborator

mizzao commented Dec 2, 2015

I've never used mpowaga:autoform-autocomplete so I can't help, although I would like this to support autoform at some point (#9, #91). Just haven't found the time to do that yet.

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