Merge pull request #1812 from ealmloff/duplicate-event-listener-rsx

check for duplicate event listeners in the rsx macro
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2024-01-11 14:34:01 -08:00
commit 4f077ec664
4 files changed
+22 -20

No files matched your search

-7
View File
@@ -401,13 +401,6 @@ impl VirtualDom {
}
}
});
// Break if this is the exact target element.
// This means we won't call two listeners with the same name on the same element. This should be
// documented, or be rejected from the rsx! macro outright
if target_path == this_path {
break;
}
}
}