meteor-autoform-select2 icon indicating copy to clipboard operation
meteor-autoform-select2 copied to clipboard

select2Options throws "Unexpected object in htmljs in toText"

Open macrozone opened this issue 6 years ago • 0 comments
trafficstars

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?

macrozone avatar Jan 21 '19 13:01 macrozone