Frontmatter
| id | 5344 |
| title | form.field.Select: updateValueFromInputValue() |
| state | Closed |
| labels | enhancement |
| assignees | tobiu |
| createdAt | Mar 15, 2024, 2:56 PM |
| updatedAt | Mar 18, 2024, 9:19 AM |
| githubUrl | https://github.com/neomjs/neo/issues/5344 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Mar 18, 2024, 9:19 AM |

when a user types into the inputField, we want to (silently) reset the value (record) of the field.
however, if we programmatically change the value and this updates the content of the input tag, this must not happen.
since both, user driven and programmatic changes trigger the same DOM events, it is non-trivial to spot the difference. one (workaround) way to do it would be to check if the control has focus (assuming then that changes are user-driven).
another maybe better way:
beforeSetValue()could set a flag, that the next input field change will be programmatic andafterSetValue()could remove it.@ExtAnimal