Merge branch 'DioxusLabs:master' into fix-event-bubbling

This commit is contained in:
ealmloff authored and GitHub committed 2023-12-16 06:34:00 -06:00
commit 56478d1856
101 files changed
+1705 -466

No files matched your search

+1 -1
View File
@@ -602,7 +602,7 @@ impl<'b> VirtualDom {
// If none of the old keys are reused by the new children, then we remove all the remaining old children and
// create the new children afresh.
if shared_keys.is_empty() {
if old.get(0).is_some() {
if old.first().is_some() {
self.remove_nodes(&old[1..]);
self.replace(&old[0], new, Some(parent));
} else {