I used the onBlur handler, instead of onChange. Wouldn't that work also?
A:
onBlur will run whenever the customer leaves the phone number field, so that's also a good option. But with onBlur, getCustomerInfo() will get run even if the customer didn't change the phone number. onChange will only run when the number changes, so it's probably a better choice.