Ian West/PA Images/Getty Matthew Morrison
New details are emerging about Matthew Morrison‘s sudden departure from his judging gig on So You Think You Can Dance.
A source close to the Fox reality show tells PEOPLE that Morrison, 43, was fired from the series “after he had an inappropriate relationship with a female contestant.”
“They didn’t have sex, but he reached out to her through flirty direct messages on social media,” the source says. “She felt uncomfortable with his line of comments and went to producers, who then got Fox involved. He was fired after they did their own investigation.”
The source adds that Morrison and the unidentified female contestant “never met up off-set.”
“It was just messages that crossed the line,” the source notes.
Reps for Morrison and Fox did not immediately respond to PEOPLE’s request for comment.
Mike Yarish/FOX Matthew Morrison
RELATED: Matthew Morrison Exits So You Think You Can Dance After Not Following ‘Production Protocols’
News that the Tony Award-nominated Broadway star had exited SYTYCD broke on Friday, a little more than a week after the dance competition series aired its season 17 premiere on May 18.
At the time, Morrison said in a statement to PEOPLE that he was leaving the show after failing to follow “competition production protocols.”
“Having the opportunity to be a judge on So You Think You Can Dance was an incredible honor for me. Therefore, it is my deepest regret to inform you that I will be leaving the show,” Morrison said in the statement.
“After filming the audition rounds for the show and completing the selection of the 12 finalists, I did not follow competition production protocols, preventing me from being able to judge the competition fairly,” he continued. “I cannot apologize enough to all involved and I will be watching alongside you all on what I know will be one of the best seasons yet.”
Never miss a story — sign up for PEOPLE’s free daily newsletter to stay up-to-date on the best of what PEOPLE has to offer, from juicy celebrity news to compelling human interest stories.
As most of this season’s episodes were already pre-taped, Morrison will likely appear in episodes through mid-June, according to Entertainment Weekly, adding that his replacement is expected to be brought in for the second part of the competition’s filming.
Morrison was part of a new panel of judges for season 17 that replaced Nigel Lythgoe and Mary Murphy with JoJo Siwa and Stephen “tWitch” Boss. Cat Deeley returns as host this season.