Stimulus Discourse

Position Fixed Action Registration Issue

Perhaps I’m doing something wrong but if I have a div fixed to the top for desktop navigation purposes with a controller and a child element with an action (click->) it works great. But if I fix the div to the bottom for mobile purposes the controller registers but doesn’t register the action event.

The only thing that is changed in css is…

top: 0

to

bottom: 0

Anyone run into this issue? Ideas?

Fixed it. I had to put a z-index on the fixed div.