So I guess it is more complicated then I previously stated. There is a differnce between the YouTube Implementation since it is an iframe and when media is selected as a source. My solution only helps for the Media-approach.
I can get it to break with both though…
Not sure how i can upload a template here so, i just post it as template-code below.
There is a Button called “DELETE ME” inside my template.
Whenever there is a interactable Element after the Video-Element it works fine. After you delete said button, it will only focus on the first Button (which holds an x-Icon and closes the popup).
Put the Video below/behind the “DELETE ME”-Button and It’s broken aswell.
{
"id": 889,
"name": "popup-example",
"title": "Popup Example",
"date": "2025-06-12 14:21:05",
"date_formatted": "12. June 2025",
"author": {
"name": "su@tmin",
"avatar": "https://secure.gravatar.com/avatar/60145a0752ecd137425182f2352b01707eff338a6a3548d2c1cdbc00e688991b?s=60&d=mm&r=g",
"url": "http://sk-koenigsbruegge.local"
},
"permalink": "https://sk-koenigsbruegge.local/template/popup-example/",
"thumbnail": "https://sk-koenigsbruegge.local/wp-content/uploads/bricks/template-screenshots/template-screenshot-889-1749731354.webp",
"bundles": [],
"tags": [],
"type": "popup",
"content": [
{
"id": "cgaweb",
"name": "icon",
"parent": "uphrns",
"children": [],
"settings": {
"icon": { "library": "themify", "icon": "ti-close" },
"iconSize": "2em"
}
},
{
"id": "jxgrrm",
"name": "heading",
"parent": "xulsik",
"children": [],
"settings": { "text": "Title" }
},
{
"id": "xulsik",
"name": "block",
"parent": 0,
"children": ["jxgrrm", "uphrns"],
"settings": {
"_direction": "row",
"_justifyContent": "space-between",
"_alignItems": "flex-start"
}
},
{
"id": "oouzbz",
"name": "video",
"parent": 0,
"children": [],
"settings": {
"videoType": "media",
"youTubeId": "5DGo0AYOJ7s",
"youtubeControls": true,
"vimeoByline": true,
"vimeoTitle": true,
"vimeoPortrait": true,
"fileControls": true,
"media": {
"id": 780,
"filename": "koenigsbruegge-imagefilm.m4v",
"mime": "video/mp4",
"url": "https://sk-koenigsbruegge.local/wp-content/uploads/koenigsbruegge-imagefilm.m4v"
}
}
},
{
"id": "uphrns",
"name": "div",
"parent": "xulsik",
"children": ["cgaweb"],
"settings": {
"tag": "custom",
"customTag": "button",
"_interactions": [
{
"id": "yofjqg",
"target": "popup",
"trigger": "click",
"action": "hide",
"templateId": "889"
}
]
}
},
{
"id": "gwxnib",
"name": "button",
"parent": 0,
"children": [],
"settings": {
"text": "Ich bin ein Button",
"style": "primary",
"tag": "button"
},
"label": "DELETE ME"
}
],
"templateType": "popup"
}
Hope this Helps
Cheers Suat