croco-html 4.4.0 → 4.4.1

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.
@@ -2274,12 +2274,11 @@ class DefinedCustomEditorBlockComponent {
2274
2274
  this._options = _options;
2275
2275
  this.useDynamicComponent = false;
2276
2276
  this.onTagUpdated = new EventEmitter();
2277
- this._tagName = "";
2278
- this._shortTagName = "";
2279
2277
  }
2280
2278
  getCustomComponent() {
2281
- if (this._options.definedCustomTagViewRenderers.hasOwnProperty(this._tagName)) {
2282
- return this._options.definedCustomTagViewRenderers[this._tagName].editorComponent;
2279
+ const tagName = this.tag.tagDescription.tag;
2280
+ if (this._options.definedCustomTagViewRenderers.hasOwnProperty(tagName)) {
2281
+ return this._options.definedCustomTagViewRenderers[tagName].editorComponent;
2283
2282
  }
2284
2283
  return null;
2285
2284
  }