Fixed issue in EditorStartup.init() where $qq will not work if the editor is in a Web Component (#1028)

* Added alt tags to img elements.

* fixed lint issues

* Changed the SESpinInput to have a closed shadow DOM to fix the duplicate label id issue reported in browser.

* Fixed code in EditorStartup that fails if the editor is in a Web Component.  $qq will not find the .svg_editor, but this.$container will.

* fix linter issue

* update packages

* remove closed as this causes the test to fail.

---------

Co-authored-by: JFH <20402845+jfhenon@users.noreply.github.com>
This commit is contained in:
Michael S. Scherotter
2025-03-09 13:41:41 -07:00
committed by GitHub
parent 25e0d91add
commit 61e8d439c4
4 changed files with 110 additions and 110 deletions

View File

@@ -66,7 +66,7 @@ export class SESpinInput extends HTMLElement {
// locate the component
this.$div = this._shadowRoot.querySelector('div')
this.$img = this._shadowRoot.querySelector('img')
this.$label = this.shadowRoot.getElementById('label')
this.$label = this._shadowRoot.getElementById('label')
this.$event = new CustomEvent('change')
this.$input = this._shadowRoot.querySelector('elix-number-spin-box')
this.imgPath = svgEditor.configObj.curConfig.imgPath