I can't seem to find a good solution for this, but maybe others have had a similar issue.
I'm trying to create an extension with a button in the drawer that, when clicked, will show a popup-window. I've managed to create a button in the drawer and showing the popup alright, by copying how adapt-contrib-resources is doing it.
This works just fine, as long as my extension isn't the only extension using the drawer (e.g. if resources is enabled). However if my extension IS the only one using the drawer and the user clicks the "nav__drawer-btn", the popup shows as expected, but the "shadow"-div is also appearing.
The code calls the Adapt.trigger('drawer:closeDrawer'); which works fine when there are more than one extension using the drawer, but it fails to remove the "shadow"-div when my extension is the only one.
Any help would be great!
I'm using CLI: 2.1.9 and Framework: 5.6.1