our code does that, presumably to prepare for the next time the modal is shown