Skip to content

A free, self-hostable news aggregator…

Fix sharing menu conflicts with extensions (#9074)

Gerard Alvear Porras2a42d79cdadd
diff --git a/p/scripts/main.js b/p/scripts/main.js
index 243fb819f..440a02114 100644
--- a/p/scripts/main.js
+++ b/p/scripts/main.js
@@ -804,7 +804,7 @@ async function show_labels_menu(el) {
function show_share_menu(el) {
const div = el.parentElement;
- const dropdownMenu = div.querySelector('.dropdown-menu');
+ const dropdownMenu = div.querySelector(':scope > .dropdown-menu');
if (!dropdownMenu) {
const itemId = el.closest('.flux').dataset.entry;