lupine.web 1.0.25 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -226,6 +226,12 @@ export const mountComponents = async (selector: string | null | Element, jsxNode
|
|
|
226
226
|
|
|
227
227
|
// call unload before releace innerHTML
|
|
228
228
|
// el.innerHTML = jsxNodes.props._html.join('');
|
|
229
|
+
// remove <Fragment> and </Fragment>
|
|
230
|
+
const _html = jsxNodes.props._html;
|
|
231
|
+
if (_html[0] === '<Fragment>' && _html[_html.length - 1] === '</Fragment>') {
|
|
232
|
+
_html.shift();
|
|
233
|
+
_html.pop();
|
|
234
|
+
}
|
|
229
235
|
await replaceInnerhtml(el, jsxNodes.props._html.join(''));
|
|
230
236
|
|
|
231
237
|
// if (firstDom && firstDom.tagName === 'STYLE') {
|