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.
@@ -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.parent.entity === "svg" || this.entity === "svg") {
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;