fix event bubbling within a single template
This commit is contained in:
1 parent
eee6cbabb2
commit
4847789a83
2 files changed
+4
-4
No files matched your search
@@ -396,7 +396,7 @@ impl VirtualDom {
|
||||
|
||||
// Remove the "on" prefix if it exists, TODO, we should remove this and settle on one
|
||||
if attr.name.trim_start_matches("on") == name
|
||||
&& target_path.is_ascendant(&this_path)
|
||||
&& target_path.is_decendant(&this_path)
|
||||
{
|
||||
listeners.push(&attr.value);
|
||||
|
||||
|
||||
Reference in new issue
Block a user