Dropdown opens at wrong place (location of <BasicDropdownWormhole />?) with version 8.0.1
bracke opened this issue · 6 comments
Hi
I have a dropdown which should open in a field in a table row. Instead it opens outside the table when I click. I think its where the BasicFropdownWormhole is.
This worked fine with version7.
@bracke on which place do you have <BasicDropdownWormhole />
? Before or after {{outlet}}
?
I think the best way should be before the {{outlet}}
in application.hbs
(because this is more/less the position which was in v7)
I have moved it before outlet but now its displayed before the table. It should be displayed where i clicked to open it.
Note:
The app uses ember-wormhole for some other stuff and bootstrap also uses some wormhole thing.
Could this maybe interfere?
I think I figured out what was missing:
The import statement in app.js was missing.
If I add it then the dropdown is displayed correctly although not "bootstrappy".
According to https://ember-power-select.com/cookbook/bootstrap-theme
I should replace the import statement with "import 'ember-power-select/themes/bootstrap';"
But If I do that the build fails?
@bracke thanks for debugging.. looks like we have broken this import in a beta version... not sure when it was occured... I have prepared a fix.
I have also extended the migration docs for theme
@bracke fix was released in v8.0.2
. Let me know if this fix all your issues from this issue or if there is anything else what we need to patch
It fixes the problem :-)
Thank you for the very quick response.