diff --git a/package.json b/package.json index f78c806d3..657b4bfb8 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "chai": "~4.3.4", "eslint": "^8.13.0", "express": "^4.18.2", - "idiomorph": "https://github.com/bigskysoftware/idiomorph.git", + "idiomorph": "~0.4.0", "multer": "^1.4.2", "rollup": "^2.35.1" }, diff --git a/src/core/morphing.js b/src/core/morphing.js index f1af99755..8a7274ff2 100644 --- a/src/core/morphing.js +++ b/src/core/morphing.js @@ -4,6 +4,7 @@ import { dispatch } from "../util" export function morphElements(currentElement, newElement, { callbacks, ...options } = {}) { Idiomorph.morph(currentElement, newElement, { ...options, + twoPass: true, callbacks: new DefaultIdiomorphCallbacks(callbacks) }) } diff --git a/yarn.lock b/yarn.lock index 4930cc4cf..0966083a7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1853,9 +1853,10 @@ iconv-lite@0.4.24: dependencies: safer-buffer ">= 2.1.2 < 3" -"idiomorph@https://github.com/bigskysoftware/idiomorph.git": - version "0.3.0" - resolved "https://github.com/bigskysoftware/idiomorph.git#b5115add9f7ab04c04af0624385540dff04e0735" +idiomorph@~0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/idiomorph/-/idiomorph-0.4.0.tgz#ba63a7a73cf6b8db74acec6e22b7c98341e7d548" + integrity sha512-VdXFpZOTXhLatJmhCWJR5oQKLXT01O6sFCJqT0/EqG71C4tYZdPJ5etvttwWsT2WKRYWz160XkNr1DUqXNMZHg== ieee754@^1.1.13: version "1.2.1"