From bb0b3373c73447c3e31e6ed1aa9ce23d2031602b Mon Sep 17 00:00:00 2001 From: jdlrobson Date: Wed, 1 Dec 2021 14:32:13 -0800 Subject: [PATCH] Mount search to parent node of search form Follow up to 5dee570cb22af49b853d733e69bc6105cd40d5eb. It seems the mount works slightly different in that it creates a div, appends by the App element to the element you give it, after clearing all it's child nodes. The previous behaviour was that the old element was /replaced/ by the App element. Bug: T296889 Change-Id: Iee7493c032f4de5389207bba288a1a70e4cd14f3 --- resources/skins.vector.search/skins.vector.search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/skins.vector.search/skins.vector.search.js b/resources/skins.vector.search/skins.vector.search.js index e614d11a..c3370076 100644 --- a/resources/skins.vector.search/skins.vector.search.js +++ b/resources/skins.vector.search/skins.vector.search.js @@ -35,7 +35,7 @@ function initApp( searchForm ) { // Pass additional config from server. }, config ) ) - .mount( searchForm ); + .mount( searchForm.parentNode ); } /** * @param {Document} document