Skip to content

Commit

Permalink
loadUnresolved properly on clipboard paste
Browse files Browse the repository at this point in the history
SQUASHED: AUTO-COMMIT-src-client-clipboard.js,
  • Loading branch information
JensLincke committed Jan 30, 2024
1 parent 81b1526 commit 20b2162
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/client/clipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@ export default class Clipboard {
var topLevel = Array.from(div.querySelectorAll(":scope > *"))
var all = Array.from(div.querySelectorAll("*"))

this.initializeElements(all)
lively.components.loadUnresolved(result, true, "pasteHTMLDataInto", true).then(() => {
this.initializeElements(all)
})



// somehow zIndex gets lost...
Expand Down Expand Up @@ -182,7 +185,6 @@ export default class Clipboard {
if (flat) {
return topLevel
}
lively.components.loadUnresolved(result, true, "pasteHTMLDataInto", true)

return result
}
Expand Down

0 comments on commit 20b2162

Please sign in to comment.