Only transfer props to the Panel heading

I stumbled onto another problem related to forms inside a React Bootstrap component : 

When I had a form inside a collapsible Panel (inside and Accordion), clicking on an input of the form would close the Panel (as onClick or onSelect was transferred I guess).