How can I implement a feature where the user can edit a textview, but if the modified value is invalid (such as setting it to 0), it will return to its original value? Is there a way to achieve this within the .html file alone?
<TextView
[editable]="lift.completed"
keyboardType="number"
[text]="lift.reps"
row="0"
col="3"
class="set_list"
(textChange)="updateLifts(i, 'reps', $event.value)"
>