Planer: Schild-Input auf change-Event umgestellt (kein Fokus-Verlust beim Tippen)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
xziino 2026-05-23 16:46:34 +02:00
parent e358a4e709
commit b27986c0f4

View File

@ -1110,7 +1110,7 @@ function renderInfoPanel(plan) {
const shieldInput = el.querySelector('#plan-shield-k-input'); const shieldInput = el.querySelector('#plan-shield-k-input');
if (shieldInput) { if (shieldInput) {
shieldInput.addEventListener('input', () => { shieldInput.addEventListener('change', () => {
const val = parseFloat(shieldInput.value) || 0; const val = parseFloat(shieldInput.value) || 0;
updatePlan(plan.id, { shieldK: val > 0 ? val : null }); updatePlan(plan.id, { shieldK: val > 0 ? val : null });
refreshMechanicList(plan.id); refreshMechanicList(plan.id);