LearnNewsExamplesServices
Frontmatter
id5344
titleform.field.Select: updateValueFromInputValue()
stateClosed
labels
enhancement
assigneestobiu
createdAtMar 15, 2024, 2:56 PM
updatedAtMar 18, 2024, 9:19 AM
githubUrlhttps://github.com/neomjs/neo/issues/5344
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtMar 18, 2024, 9:19 AM

form.field.Select: updateValueFromInputValue()

Closed v8.1.0 enhancement
tobiu
tobiu commented on Mar 15, 2024, 2:56 PM

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 and afterSetValue() could remove it.

@ExtAnimal

tobiu added the enhancement label on Mar 15, 2024, 2:56 PM
tobiu assigned to @tobiu on Mar 15, 2024, 2:56 PM
tobiu cross-referenced by #5345 on Mar 15, 2024, 2:58 PM
tobiu
tobiu Mar 18, 2024, 9:19 AM

resolved

tobiu closed this issue on Mar 18, 2024, 9:19 AM