lilact 0.24.1 → 0.24.2
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/dist/lilact.development.js +5 -1
- package/dist/lilact.development.js.map +2 -2
- package/dist/lilact.development.min.js +2 -2
- package/dist/lilact.development.min.js.map +2 -2
- package/dist/lilact.production.min.js +2 -2
- package/docs/classes/accessories.ErrorBoundary.html +8 -8
- package/docs/classes/accessories.Suspense.html +7 -7
- package/docs/classes/components.Component.html +11 -11
- package/docs/classes/components.HTMLComponent.html +11 -11
- package/docs/classes/components.RootComponent.html +11 -11
- package/docs/functions/components.cloneComponent.html +1 -1
- package/docs/functions/components.createComponent.html +1 -1
- package/docs/functions/components.createPortal.html +1 -1
- package/docs/functions/components.createRoot.html +1 -1
- package/docs/functions/components.memo.html +1 -1
- package/docs/functions/components.render.html +1 -1
- package/docs/static/lilact.development.js +5 -1
- package/docs/static/lilact.development.js.map +2 -2
- package/docs/static/lilact.development.min.js +2 -2
- package/docs/static/lilact.development.min.js.map +2 -2
- package/docs/static/lilact.production.min.js +2 -2
- package/docs/variables/components.cloneElement.html +1 -1
- package/examples/lilact.development.js +5 -1
- package/examples/lilact.development.js.map +2 -2
- package/examples/lilact.development.min.js +2 -2
- package/examples/lilact.development.min.js.map +2 -2
- package/examples/lilact.production.min.js +2 -2
- package/package.json +1 -1
- package/src/components.jsx +6 -1
|
@@ -2446,7 +2446,8 @@ var ComponentCore = class {
|
|
|
2446
2446
|
if (this.component.shouldComponentUpdate && !this.component.shouldComponentUpdate(next_state, next_props, this.context)) return;
|
|
2447
2447
|
if (typeof this.entity === "string") {
|
|
2448
2448
|
if (!(this.element instanceof Element)) {
|
|
2449
|
-
if (this.
|
|
2449
|
+
if (this.is_svg || this.container.is_svg) {
|
|
2450
|
+
this.is_svg = true;
|
|
2450
2451
|
this.element = document.createElementNS(SVG_NS, this.entity);
|
|
2451
2452
|
} else {
|
|
2452
2453
|
this.element = document.createElement(this.entity);
|
|
@@ -3028,6 +3029,9 @@ var HTMLComponent = class extends Component {
|
|
|
3028
3029
|
constructor(entity, props) {
|
|
3029
3030
|
super(props);
|
|
3030
3031
|
this[CORE].entity = entity;
|
|
3032
|
+
if (entity === "svg") {
|
|
3033
|
+
this[CORE].is_svg = true;
|
|
3034
|
+
}
|
|
3031
3035
|
}
|
|
3032
3036
|
render() {
|
|
3033
3037
|
return this[CORE].props.children;
|