Example Bootstrap modal closing bug fix.

The old version's modal doesn't close correctly, because it gets re-rendered (following a parent's state variable change) before having the change to play the closing animation. This fixes it, but more or less defeats the purpose of showing a toggling state in parent. Will open new issue to discuss about this.