question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot use (action 'actionName') on tag-less component

See original GitHub issue

Hello,

It’s currently not possible to send an action to a component, if tagName is set to null. ssertion Failed: You can not define a function that handles DOM events in the

I want to use this in a component that is a wrapper for another component.

How could I be able to send the action?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
andreiciceucommented, Mar 21, 2017

@kumkanillam Didn’t know that. Thank you, case closed

0reactions
kumkanillamcommented, Mar 20, 2017

Thank you for the twiddle. In your twiddle you are defining submit DOM event functions for app-modal component that’s not supported when you use tagName='' You can go through this assertion test code to confirm. I changed submit function name to on-submit everything is worked. here is the twiddle link . so this is not the ember bug. it’s the price you have to pay when you use component with tagName=''

Read more comments on GitHub >

github_iconTop Results From Across the Web

component cannot find action - ember.js - Stack Overflow
In the room.hbs file, {{my-component myAction='postMessage'}}. and then in my-component.js import Ember from 'ember'; export default Ember.
Read more >
Access to child element in tagless component - Ember.JS
When using tagless components (tagName = ""), the element property is (understandably) null. However I'd like to access some child node, ...
Read more >
ember-paper | Yarn - Package Manager
This project aims to bring Google's new Material Design to Ember. The goal is to encapsulate everything possible in Ember components. This project...
Read more >
JavaScript ember-debug assert Examples
Please confirm that you are using either a quoted action name (i.e. ... assert('You cannot use `attributeBindings` on a tag-less component: ' +...
Read more >
ember-source @ 3.8.1 .. 3.10.0 - Package Diff
(0, _debug.assert)(`You cannot use \`elementId\` on a tag-less component: ... _debug.assert)("The action '" + actionName + "' did not exist on " +...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found