title: Accordion immediately collapses after state change
body: <p>I'm working with Bootstrap's Accordion in a React app. Each Accordion item has a form in its body. It seems straightforward except the Accordion immediately closes whenever any character is entered in a field (onChange triggered). After trial and error, I believe the issue could be related to useState. The Accordion doesn't close if I don't do a state change.</p>
  <p>I can reproduce the issue in this <a href="https://codesandbox.io/s/xenodochial-feather-jp1lbb?file=/src/App.js" rel="nofollow noreferrer">codesandbox</a>.</p>
  <p>I can't figure out why this is happening. If anyone has any suggestions, I much appreciate it.</p>
  <p>Thank you!</p>