AmpersandJS / ampersand-select-view

Select field for ampersand-form-views
MIT License
11 stars 26 forks source link

Template should accept DOM node like other ampersand form views #55

Open thisjustin opened 9 years ago

thisjustin commented 9 years ago

Currently if you pass a DOM node as the template you get a "Expecting string" error. All other ampersand form views accept DOM node or string as template.

cdaringe commented 8 years ago

looks like this is a limitation of domify. In &-view, renderWithTemplate accepts a string or a function. What we probably need to do is use renderWithTemplate in this pkg's render fn and consider accepting raw-DOM over in &-vew. will be thinking about this one. im wondering if this hasn't actually already been considered