This PR unifies the way TextInput values are sanitized. Previously InputValue.value would contain raw text field value and InputValue.normalizedValue would contain normalized value (whitespaces trimmed by default). This made it error-prone, so I renamed value to rawTextFieldValue and added annotation that requires opt-in (effectively the compilation will fail on accidental use) and renamed normalizedValue to value. This means that all text fields are now automatically trimmed before saving (which was always the goal).
Closes https://github.com/fmasa/wfrp-master/issues/247
This PR unifies the way
TextInput
values are sanitized. PreviouslyInputValue.value
would contain raw text field value andInputValue.normalizedValue
would contain normalized value (whitespaces trimmed by default). This made it error-prone, so I renamedvalue
torawTextFieldValue
and added annotation that requires opt-in (effectively the compilation will fail on accidental use) and renamednormalizedValue
tovalue
. This means that all text fields are now automatically trimmed before saving (which was always the goal).