leaveNotice icon indicating copy to clipboard operation
leaveNotice copied to clipboard

Popup box empty on first click

Open SpacemanPete opened this issue 9 years ago • 1 comments

I have a puzzling issue trying to implement this plugin.

When I first click an external link on the site the popup box appears on screen but is empty, inspecting the region the

is completely empty. I hit <ESC> to clear the popup and click on the link again but the second time it works fine.

The resources load without issue and i'm not getting any error messages in the console...

I'll start commenting out other js resources to see if it's an interaction problem with one of the other js files.

Our website platform relies on jquery 1.7.4, could that be the problem?

SpacemanPete avatar Sep 30 '15 17:09 SpacemanPete

I found a partial solution to my issue. There was another click event handler managing a different class of links for a spacific purpose, but it was using the same 'ln-messageBox' class as this leaveNotice. Changing the messageBox and messaheHolder name as properties when invoking the function causes all dom elements to be changed as well even for the other message box. I manually edited the default messagebox and message holder id variables to get around this problem, but now I have an issue where the cancel button isn't working. Clicking the cancel button is adding the "#close" string to the url but the popup box remains on screen.

SpacemanPete avatar Sep 30 '15 21:09 SpacemanPete