The value pop back to 1 since it's the min value // This one correct
Try remove the value again
Click somewhere outside again
The value is not pop back to 1 // Incorrect behavior
I tried debugging and found that lastValue in the component not updated properly when the value update via @blur from parent, this might be the cause of the issue.
Scenario: I need a number input that will reset its value back to min value if the value in the field is lower than min value only after it's blur.
Current Behavior: Given this snippet:
The count in mask input failed to update if:
I tried debugging and found that
lastValue
in the component not updated properly when the value update via @blur from parent, this might be the cause of the issue.