How to correct tabbing behavior for text fields that refresh on change
We have a requirement to fix the focus when tabbing from field to another in the section below.
(Expected) When user changes the "Allotted days" value and tabs out, a refresh happens to update the next "Due" field and ideally keep focus on that field (Due).
(Actual) The issue is that when a change happens to the Allotted days and it refreshes the section, the focus moves to the Save button.
we added a javascript code to keep focus on the section with the fields and not move to the Save button however the focus then moves to the first field in the section...instead of set the focus on the correct field that comes after the refreshed field.
any ideas on how to accomplish the behaviour of setting focus on the next element after the changed field?