holidayextras / ui-toolkit

DEPRECATED - CSS & React components
http://tech.holidayextras.co.uk/ui-toolkit/
MIT License
14 stars 3 forks source link

CEX-570 add blur prop to input component #129

Closed hxtomprice closed 8 years ago

hxtomprice commented 8 years ago

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?


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