7
votes

i have a container div that contains many inputs and checkboxes inside, i want to trigger an onBlur event only when the container div loses focus, instead the onBlur event is triggered everytime any element inside it loses focus

1
Please post the code relevant to your issue, and I'd be glad to assist.Chris

1 Answers

3
votes

React documents this problem by utilizing the event loop with a setTimeout function with an empty second argument.