Merge pull request #1734 from dmitrylyzo/fix-plugin-configuration

Fix injecting of view with embedded script
This commit is contained in:
dkanada 2020-08-03 02:39:18 +09:00 committed by GitHub
commit 6607718edb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,8 +54,8 @@ import 'css!components/viewManager/viewContainer';
if (currentPage) {
if (newViewInfo.hasScript && window.$) {
view = $(view).appendTo(mainAnimatedPages)[0];
mainAnimatedPages.removeChild(currentPage);
view = $(view).appendTo(mainAnimatedPages)[0];
} else {
mainAnimatedPages.replaceChild(view, currentPage);
}