Skip to content

Element helper always render a div. #45

Open
@mbiondo

Description

@mbiondo

My case:

This example does not work for me, it returns an exception

{{#let (element 'span') as |Tag|}}
  <Tag class="my-tag">hello world!</Tag>
{{/let}}
'The `element` helper polyfill encountered an unexpected error. ' +
'Please report the issue at http://github.com/tildeio/ember-element-helper ' +
'with the usage and conditions that caused this error.'

myComponent.hbs (glimmer)

{{#let (component (-element 'span')) as |Tag|}}
  <Tag >I Want to be a span</Tag>
{{/let}}

result:

<div id="ember-#" ...> 
    I Want to be a span
</div>

Should be

<span id="ember-#" ....>
    I Want to be a span
</span>

ember-cli 3.25.2

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions