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

fix: qui/controls/buttons/Select -> at open Event, deselect all inactive children

Übergeordneter ee962c93
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
Keine zugehörigen Merge Requests gefunden
......@@ -674,13 +674,26 @@ define('qui/controls/buttons/Select', [
overflowY = document.documentElement.getStyle('overflow-y');
// overflow ist hidden, daher müssen wir anders berechnen
if (overflow == 'hidden' || overflowX == 'hidden' || overflowY == 'hidden') {
if (overflow === 'hidden' || overflowX === 'hidden' || overflowY === 'hidden') {
console.warn(
'Don\'t use overflow:hidden at the HTML Node (documentElement).' +
'There is a bug when the height specified in %, eq: height: 100%'
);
}
var Option = this.$Menu.getChildren(
this.getAttribute('name') + this.getValue()
);
if (Option) {
this.$Menu.getChildren().each(function (Child) {
Child.setNormal();
});
Option.setActive();
}
var width = size.x + 1;
if (this.getAttribute('menuWidth')) {
......@@ -711,14 +724,6 @@ define('qui/controls/buttons/Select', [
document.body.addEvent('keydown', this.$showSearch);
}
var Option = this.$Menu.getChildren(
this.getAttribute('name') + this.getValue()
);
if (Option) {
Option.setActive();
}
return this;
},
......
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