-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ProposalField: fix open and close touch popup multiple times
If the touch popup of a SmartField or ProposalField is opened and closed multiple times without changing the value, the properties value, displayText, errorStatus and lookupRow of the corresponding field need to stay unchanged. These properties are copied from the original field to the field in the touch popup. Therefore, save the initial state of these properties and compare them before closing the popup to detect whether the popup was changed or not. It is not sufficient to mark the field in the touch popup as saved and check if it was touched before closing as there might be validators that throw exceptions on some values. Consider two values 'ok' and 'error' and a validator that throws an error if 'error' is selected. When switching between these two the value of the ProposalField will always be 'ok' but the displayText will change. Marking the field in the touch popup as saved and checking if it was touched will only consider the value which has not changed in this example and there would be no update of the original field and the resulting errorStatus will be inconsistent. 369873
- Loading branch information
Showing
3 changed files
with
165 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters