Cannot use (action 'actionName') on tag-less component
See original GitHub issueHello,
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:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@kumkanillam Didn’t know that. Thank you, case closed
Thank you for the twiddle. In your twiddle you are defining
submit
DOM event functions forapp-modal
component that’s not supported when you usetagName=''
You can go through this assertion test code to confirm. I changedsubmit
function name toon-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 withtagName=''