Fix PS module stuck-Next bug: validate() on number-input oninput (typing into empty PS join/service/salary step never enabled Next; real users were stuck) + click-through regression test (smoke 74->88, EN+FR)
This commit is contained in:
1 parent
becdf53f1a
commit
3981b9bc26
2 files changed
+51
-4
No files matched your search
+2
-2
@@ -369,13 +369,13 @@
|
||||
});
|
||||
var f1 = $('#f1');
|
||||
if (f1) {
|
||||
f1.oninput = function () { s.set(f1.value); save(); liveUpdate(); if (s.type === 'slider') $('#sv').textContent = s.fmt(+f1.value); };
|
||||
f1.oninput = function () { s.set(f1.value); save(); liveUpdate(); validate(s); if (s.type === 'slider') $('#sv').textContent = s.fmt(+f1.value); };
|
||||
if (s.type === 'slider') f1.oninput();
|
||||
/* Fix 8: Enter on a number step = press Next (when enabled). */
|
||||
if (s.type === 'number') f1.onkeydown = function (e) { if (e.key === 'Enter' && !btnNext.disabled) btnNext.click(); };
|
||||
}
|
||||
stepBody.querySelectorAll('input[type=number][data-k]').forEach(function (inp) {
|
||||
inp.oninput = function () { s.set(inp.dataset.k, inp.value); save(); liveUpdate(); };
|
||||
inp.oninput = function () { s.set(inp.dataset.k, inp.value); save(); liveUpdate(); validate(s); };
|
||||
});
|
||||
stepBody.querySelectorAll('input[type=range][data-k]').forEach(function (inp) {
|
||||
inp.oninput = function () {
|
||||
|
||||
Reference in new issue
Block a user