onBlur event with the form control

Can I add onBlur event with the form control.Is it valid? <Form.Control onBlur={handleBlur} type=“text” placeholder=“User Name” required />

I assume you are using React Bootstrap? There shouldn’t be anything stopping you from using an onBlur event.

But I’m not sure what you mean by “Is it valid?”. The event is valid and it is a valid element to attach the event to. But it isn’t listed as part of the props for the API (it does work though).

Should be simple enough to test anyway.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.