Merge branch 'master' of https://github.com/SVG-Edit/svgedit into issues/612

This commit is contained in:
agriyadev5
2021-08-18 13:21:30 +05:30
10 changed files with 832 additions and 400 deletions

View File

@@ -113,9 +113,7 @@ export class SESpinInput extends HTMLElement {
this.$img.remove();
break;
case 'value':
if(this.$input.value !== newValue) {
this.$input.value = newValue;
}
this.$input.value = newValue;
break;
default:
// eslint-disable-next-line no-console
@@ -190,13 +188,6 @@ export class SESpinInput extends HTMLElement {
* @returns {void}
*/
connectedCallback () {
this.$input.addEventListener('onchange', (e) => {
e.preventDefault();
if(e.detail !== this.value && e.detail !== "" && !isNaN(e.detail) ) {
const event = new CustomEvent('change', { detail: e.detail });
this.dispatchEvent(event);
}
});
this.$input.addEventListener('change', (e) => {
e.preventDefault();
this.value = e.target.value;