fix bug where select date button may not close calendar
use toggle to add/remove class name because we can't be sure if another component added/removed the same class