so I have this code that used to work fine with a normal event listener but I just changed to html onclick() for the trigger and now my popup always displays at the bottom left; I don't understand why this is different:so I have this code that used to work fine with