Skip to content
Code-Schnipsel Gruppen Projekte
Bestätigt Commit d2af8673 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix: country is not focusable

Übergeordneter a1f4b72c
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
2 Merge Requests!40Next 2.x,!33Update 'next-3.x' with latest changes from 'main'
Pipeline-Nr. 12254 bestanden
......@@ -455,7 +455,23 @@ define('package/quiqqer/order-simple-checkout/bin/frontend/controls/SimpleChecko
this.Loader.show();
return this.update().then(() => {
// check country, because input country is not focusable
if (typeof this.$Form.elements.country !== 'undefined') {
const Countries = QUI.Controls.getById(this.$Form.elements.country.get('data-quiid'));
if (this.$Form.elements.country.value === '') {
this.$Form.elements.country.value = Countries.getValue();
}
if (this.$Form.elements.country.value === '') {
Countries.focus();
this.Loader.hide();
return;
}
}
if (!this.$Form.reportValidity()) {
this.Loader.hide();
return;
}
......
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