Skip to content
Code-Schnipsel Gruppen Projekte
Commit 31df9111 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix: onload fire at import-> range control

Übergeordneter 1ad94826
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
1 Merge Request!33fix: onload fire at import-> range control
......@@ -76,6 +76,8 @@ define('qui/controls/input/Range', [
this.parent();
this.$Elm.addClass('qui-control-input-range');
this.$Elm.set('data-qui', 'qui/controls/input/Range');
this.$Elm.set('data-quiid', this.getId());
this.$Elm.set(
'html',
......@@ -194,6 +196,7 @@ define('qui/controls/input/Range', [
this.create();
this.$Input.inject(this.$Elm);
this.$Input.set('data-quiid', this.getId());
const start = this.getAttribute('start');
......@@ -202,6 +205,16 @@ define('qui/controls/input/Range', [
} else {
this.setValue(value);
}
(() => {
try {
this.$Input.fireEvent('load');
} catch (e) {
if (this.$Input) {
this.$Input.fireEvent('load');
}
}
}).delay(50);
},
/**
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren