What does this PR do? (please provide any background)
Adds an handleBlur prop to the Input component. This will allow us to run functions when a user has finished interacting with an input field. Currently there is only a handleChange prop which will run whenever a user types.
What tests does this PR have?
test/components/input-test.jsx
How can this be tested?
I've created the toolkit-blur-test branch in the react-car-reg-lookup for testing this. npm-link the toolkit, run an npm run build and you will be able to test these changes in that repo.
When you blur on the input field you will see a console.log with the value of the input field
Screenshots / Screencast
What gif best describes how you feel about this work?
What does this PR do? (please provide any background)
Adds an
handleBlur
prop to theInput
component. This will allow us to run functions when a user has finished interacting with an input field. Currently there is only ahandleChange
prop which will run whenever a user types.What tests does this PR have?
test/components/input-test.jsx
How can this be tested?
I've created the
toolkit-blur-test
branch in thereact-car-reg-lookup
for testing this.npm-link
the toolkit, run annpm run build
and you will be able to test these changes in that repo.When you blur on the input field you will see a
console.log
with the value of the input fieldScreenshots / Screencast
What gif best describes how you feel about this work?
Reviewers
Review 1
Review 2 *
Review 3 (optional)
By adding a +1 you are confirming you have...
* for HX this review must be completed by an SE, SA or Project Guru