feat: update bindings and interpreter with new tsc code
This commit is contained in:
1 parent
2c4e7beae8
commit
add21d5f9d
2 files changed
+12
-4
No files matched your search
@@ -217,7 +217,11 @@ export class Interpreter {
|
||||
}
|
||||
}
|
||||
// walk the tree to find the real element
|
||||
while (realId == null && target.parentElement != null) {
|
||||
while (realId == null) {
|
||||
// we've reached the root we don't want to send an event
|
||||
if (target.parentElement === null) {
|
||||
return;
|
||||
}
|
||||
target = target.parentElement;
|
||||
realId = target.getAttribute(`data-dioxus-id`);
|
||||
}
|
||||
@@ -270,7 +274,7 @@ export class Interpreter {
|
||||
}
|
||||
}
|
||||
}
|
||||
function serialize_event(event) {
|
||||
export function serialize_event(event) {
|
||||
switch (event.type) {
|
||||
case "copy":
|
||||
case "cut":
|
||||
|
||||
@@ -226,7 +226,11 @@ export class Interpreter {
|
||||
}
|
||||
}
|
||||
// walk the tree to find the real element
|
||||
while (realId == null && target.parentElement != null) {
|
||||
while (realId == null) {
|
||||
// we've reached the root we don't want to send an event
|
||||
if (target.parentElement === null) {
|
||||
return;
|
||||
}
|
||||
target = target.parentElement;
|
||||
realId = target.getAttribute(`data-dioxus-id`);
|
||||
}
|
||||
@@ -279,7 +283,7 @@ export class Interpreter {
|
||||
}
|
||||
}
|
||||
}
|
||||
function serialize_event(event) {
|
||||
export function serialize_event(event) {
|
||||
switch (event.type) {
|
||||
case "copy":
|
||||
case "cut":
|
||||
|
||||
Reference in new issue
Block a user