From 3acca065b1fdf4ddc98074ef8288579dd7a01fda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20Gla=CC=88ser?= Date: Tue, 16 Jun 2026 20:02:24 +0200 Subject: [PATCH] Stop OTC live validation scrolling --- modules/shared/auth/ui/home.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/shared/auth/ui/home.php b/modules/shared/auth/ui/home.php index 2f4f7dc..36b962a 100644 --- a/modules/shared/auth/ui/home.php +++ b/modules/shared/auth/ui/home.php @@ -894,7 +894,6 @@ function render_auth_home_page(array $user, array $otcProducts = [], array $best echo " if (errorEl) {"; echo " errorEl.textContent = errorMsg;"; echo " errorEl.classList.toggle('hidden', errorMsg === '');"; - echo " if (errorMsg !== '') { errorEl.scrollIntoView({ block: 'center', behavior: 'smooth' }); }"; echo " }"; echo " submitBtn.disabled = !isValid;"; echo " submitBtn.setAttribute('aria-disabled', String(!isValid));"; @@ -981,19 +980,16 @@ function render_auth_home_page(array $user, array $otcProducts = [], array $best echo " if (successEl) {"; echo " successEl.textContent = result.externalRef ? 'Bestellung erfolgreich erfasst! Bestellnummer: ' + result.externalRef : successDefaultText;"; echo " successEl.classList.remove('hidden');"; - echo " successEl.scrollIntoView({ block: 'center', behavior: 'smooth' });"; echo " }"; echo " resetForm(true);"; echo " } else if (errorEl) {"; echo " errorEl.textContent = result.error || 'Unbekannter Fehler';"; echo " errorEl.classList.remove('hidden');"; - echo " errorEl.scrollIntoView({ block: 'center', behavior: 'smooth' });"; echo " }"; echo " } catch (error) {"; echo " if (errorEl) {"; echo " errorEl.textContent = 'Netzwerkfehler: ' + error.message;"; echo " errorEl.classList.remove('hidden');"; - echo " errorEl.scrollIntoView({ block: 'center', behavior: 'smooth' });"; echo " }"; echo " } finally {"; echo " submitBtn.innerHTML = originalBtnText;";