Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add early return in view_position calculation.
When an input is instantiated without an argument for the parameter 'value', the first time the watchers associated with its reactive attributes run, the attribute self.view_position is set to 1, which makes no sense because there isn't even any value in the input. Thus, when the value is later modified programmatically, e.g., because it is set with 'some_input_widget.value = some_value', the attribute self.view_position will still be 1 and the text will be rendered starting from the first character. As two example situations of this, consider #1477 and #1443.
- Loading branch information