ember-wormhole failed to render into '#ember-basic-dropdown-wormhole' because the element is not in the DOM
See original GitHub issueWhen I try to add a dropdown to my application I get this error
ember-wormhole failed to render into '#ember-basic-dropdown-wormhole' because the element is not in the DOM
I am on ember-power-select 0.5.2 and ember 1.13.11
is it expected <div id="ember-basic-dropdown-wormhole"></div>
is added by us to the body (that didnt seem to work) or the addon? should I add ember-wormhole as a dependency to my application?
Issue Analytics
- State:
- Created 8 years ago
- Comments:26 (12 by maintainers)
Top Results From Across the Web
ember-wormhole failed to render into '#ember-basic ...
ember -wormhole failed to render into '#ember-basic-dropdown-wormhole' because the element is not in the DOM.
Read more >Cannot locate any parts of the body of an element with ...
I have tried scrolling to the middle of the page in case its hidden, finding out what is in each of the 3...
Read more >ember-basic-dropdown | Yarn - Package Manager
0.24.0. [BREAKING] It is a problem for a11y to have aria-owns/controls to an element that it's not in the DOM, so now there...
Read more >ember-basic-dropdown - UNPKG
The CDN for ember-basic-dropdown. ... error message that. 94, appeared when there was no element with id `ember-basic-dropdown-wormhole` in the document.
Read more >The State of the Ember Addon Ecosystem in 2019 - Salsify
Ember addons generally fall into one (or more) category of functionality I'll be ... ember-basic-dropdown └── ember-wormhole@0.5.1.
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 FreeTop 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
Top GitHub Comments
@cibernox this is now fixed using your suggestion.
@jackmatt2 so, you are building an addon that depends in ember-power-select, and in the final app you install only your addon, correct?
If that is so, I know why is failing.
ember-basic-dropdown (used internally by ember-power-select) uses the
contentFor
hook for adding the placeholder div. But because of the way ember-cli works (and I think that it is intended), only the hooks of the direct dependencies of your app are run. That is why ember-power-select has to define thecontentFor
hook and call thecontentFor
of ember-basic-dropdown explicitly: https://github.com/cibernox/ember-power-select/blob/master/index.js#L23-L28If your addon includes ember-power-select, you need to do the same and define the
contentFor
hook and in there, search among the addons for ember-power-select and invoke itscontentFor
.Then, the chain will be
your-addon
—>power-select
-->basic-dropdown