# NO BUG: Javascript BricksOpenPopup doesnt work anymore

**URL:** <https://forum.bricksbuilder.io/t/no-bug-javascript-bricksopenpopup-doesnt-work-anymore/25665>\
**Category:** Bugs\
**Tags:** v1-10-2\
**Created:** [August 27, 2024, 12:30pm UTC](https://forum.bricksbuilder.io/t/no-bug-javascript-bricksopenpopup-doesnt-work-anymore/25665 "2024-08-27T12:30:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![LouieX](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/l/46a35a/32.png) [@LouieX](https://forum.bricksbuilder.io/u/LouieX)\
**Post date:** [August 27, 2024, 12:30pm UTC](https://forum.bricksbuilder.io/t/no-bug-javascript-bricksopenpopup-doesnt-work-anymore/25665/1 "2024-08-27T12:30:28Z")

</div>

In Bricks 1.9.9 i have a Icon (class=info-icon) with an id=(postID)  
I have also an Bricks PopupTemplate with Ajax fetch enabled.

and in wpcodebox i have the code:

const elements = document.querySelectorAll(“.info-icon”);  
elements.forEach(function(element) {  
element.addEventListener(“click”, function(e) {  
e.preventDefault();  
bricksOpenPopup(  
5940,0,{  
popupContextId: parseInt(element.id),  
popupContextType: ‘post’  
}  
);  
});  
});

This opens the Bricks Popuptemplate (with id 5940) and loads the Content from the given Post ID.

After update to Bricks 1.10.2 - i go straight to the frontside - make a refresh - and click the Icon - AND - nothing happens.  
Then i put a line with console.log(parseInt(element.id)); in the javascript and the console gives me the correct Post-ID, so this part works . … but not the “bricksOpenPopup”…

Please see also my other Report about no parsing styles in Dynamic Popups.

---

<div class="post-metadata">

**Author:** ![itchycode](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/itchycode/32/4542_2.png) [@itchycode](https://forum.bricksbuilder.io/u/itchycode)\
**Post date:** [August 27, 2024, 12:51pm UTC](https://forum.bricksbuilder.io/t/no-bug-javascript-bricksopenpopup-doesnt-work-anymore/25665/2 "2024-08-27T12:51:35Z")

</div>

Hi @LouieX ,

Please provide a link to your page and the setup screenshots of your Query loop and Popup settings.

Any specific reason to use custom code instead of native Interaction to trigger the popup?

Regards,  
Jenn

---

<div class="post-metadata">

**Author:** ![LouieX](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/l/46a35a/32.png) [@LouieX](https://forum.bricksbuilder.io/u/LouieX)\
**Post date:** [August 27, 2024, 12:59pm UTC](https://forum.bricksbuilder.io/t/no-bug-javascript-bricksopenpopup-doesnt-work-anymore/25665/3 "2024-08-27T12:59:21Z")

</div>

Yes there is a reason:  
The Icon sits in a Woocommerce Plugin Output (HTML) via Open Popup.

The Popup template has nothing special and sits in the Footer on the hole Site (i use this on different pages) - it has Ajax Fetching on - thats is.

Cant provide a Link its a Client system…

Short: in 1.9.9 works in 1.10.2 doesnt work (without any changes - just Bricks Update)…

---

<div class="post-metadata">

**Author:** ![itchycode](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/itchycode/32/4542_2.png) [@itchycode](https://forum.bricksbuilder.io/u/itchycode)\
**Post date:** [August 27, 2024, 1:42pm UTC](https://forum.bricksbuilder.io/t/no-bug-javascript-bricksopenpopup-doesnt-work-anymore/25665/4 "2024-08-27T13:42:03Z")

</div>

Hi @LouieX ,

I just tested the bricksOpenPopup following your setup.

All working well.

The AJAX Popup triggered and showed. The ID style and global class styles are generated too.

It’s not possible for us to assist if no URL is provided. You can also send us an email if the URL is confidential. ([help@bricksbuilder.io](mailto:help@bricksbuilder.io) by using your license purchased email and include this forum thread as a reference)

Alternatively, if you could replicate this issue in [try.bricksbuilder.io](http://try.bricksbuilder.io) or a dummy website (not your client’s website), we can investigate too.

Regards,  
Jenn

---

<div class="post-metadata">

**Author:** ![LouieX](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/l/46a35a/32.png) [@LouieX](https://forum.bricksbuilder.io/u/LouieX)\
**Post date:** [August 27, 2024, 2:12pm UTC](https://forum.bricksbuilder.io/t/no-bug-javascript-bricksopenpopup-doesnt-work-anymore/25665/5 "2024-08-27T14:12:01Z")

</div>

> [@itchycode](#):
>
> [help@bricksbuilder.io](mailto:help@bricksbuilder.io)

Hi Jenn,  
I have sent a Email. There is a Login and an Explanation…  
(The Email is from a other Adresse as the Lizence Mail - but in the Email Text i have wrote the Lizence Mail)

Best Thx, Ivo

---

<div class="post-metadata">

**Author:** ![itchycode](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/itchycode/32/4542_2.png) [@itchycode](https://forum.bricksbuilder.io/u/itchycode)\
**Post date:** [August 27, 2024, 2:52pm UTC](https://forum.bricksbuilder.io/t/no-bug-javascript-bricksopenpopup-doesnt-work-anymore/25665/6 "2024-08-27T14:52:58Z")

</div>

Hi @LouieX ,

As per my email reply, there is a new setting to allow Render Popups in 1.10.2 if it’s Maintenance mode.

> **[Bricks 1.10.2](https://bricksbuilder.io/release/bricks-1-10-2/)**
>
> We are crossing off some roadmap items in this release alongside 60+ other changes. Resizing the structure panel by dragging it from the inner edge towards the canvas is now possible. You can instantly spot unsaved changes thanks to the new save...

 ![image](https://forum.bricksbuilder.io/uploads/default/original/3X/0/5/0583063296dc109eba16390a0b7a34a5b97d0679.png)

 ![image](https://forum.bricksbuilder.io/uploads/default/original/3X/8/3/83304ea1c8cfbf8bed0f1aa7d714a95b0c9bb59c.png)
