Don't play close animation on close() if sheet is already closed

Authored by cblack on May 20 2020, 6:10 PM.

Description

Don't play close animation on close() if sheet is already closed

This prevents situations like the following from happening:

  • Sheet is given keyboard shortcut to close with escape
  • User presses escape
  • Sheet hides, but still has focus
  • Pressing escape causes the close animation to play, which looks weird due to the sheet not being in the open state beforehand.