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

select2Options throws "Unexpected object in htmljs in toText" #81

Open
macrozone opened this issue Jan 21, 2019 · 0 comments
Open

select2Options throws "Unexpected object in htmljs in toText" #81

macrozone opened this issue Jan 21, 2019 · 0 comments

Comments

@macrozone
Copy link

i am upgrading an ancient app to latest meteor. worked so far, but for autoform-select2 i get:

Unexpected object in htmljs in toText

my template:

<template name="sidebar_products_search_field">
  {{#autoForm id="sidebar_products_search_field_form" schema=schema }}
  {{> afQuickField name="tags" label=false type="select2" multiple=true select2Options=select2Options}}
  {{/autoForm}}
</template>

// helpers:


Template.sidebar_products_search_field.helpers
  select2Options: ->
    tags: true
    placeholder: i18n 'searchPlaceholder'

seems that blaze does not like the select2Options beeing an object. why does this no longer work?

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

No branches or pull requests

2 participants