ember-polyfills / ember-angle-bracket-invocation-polyfill

MIT License
76 stars 33 forks source link

Possible issue with the template-only-glimmer-components optional-feature #22

Open lennyburdette opened 6 years ago

lennyburdette commented 6 years ago

I couldn't reproduce this in an isolated test case. I have an application with "template-only-glimmer-components": true and ember-angle-bracket-invocation-polyfill 1.1.5 installed. (Ember and Ember CLI are all at the latest version.)

If I invoke a component using angle brackets like:

<FlashMessage class="some-class" data-foo="bar" />

I don't see the class or data- attribute added to the DOM element.

If I disable template-only-glimmer-components, it works as expected.

These components have JS classes (they're coming from an addon) so it's not due to actually using a template-only component. I just had a few simple components in the host app where I wanted outer-HTML semantics and no extra files.

rwjblue commented 6 years ago

Thanks for reporting! What Ember version were you using?

lennyburdette commented 6 years ago

Ember 3.2 — I’m on the latest everything (it’s a new app). I even tried deleting my lockfile to make sure there wasn’t a transitive dependency that needed updating.