Fix issue with 'picker-open' class not being removed from widget when closed by clicking outside.