Updated

Matthew Morrison’s abrupt exit from "So You Think You Can Dance" last week was allegedly due to misconduct he exhibited toward a female contestant, according to a report.

Morrison, 43, was fired from being a judge on the show "after he had an inappropriate relationship with a female contestant," a source told People magazine.

The source went on to tell the outlet the two never "never met up off-set" but "it was just the messages that crossed the line."

Matthew Morrison

Matthew Morrison was fired from "So You Think You Can Dance" following alleged misconduct with a female contestant (Mikr Yarish/FOX)

"They didn't have sex, but he reached out to her through flirty direct messages on social media," the source added, per the report. "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."

TOM HANKS STARS AS GEPPETTO IN TEASER TRAILER FOR DISNEY'S LIVE-ACTION 'PINOCCHIO'

Morrison announced Friday that he would no longer be a judge on the show, citing a failure to follow the show's production protocols. He departed a week after season 17 of the show premiered.

so you think you can dance

HOLLYWOOD - AUGUST 06:  TV host Cat Deeley at the "So You Think You Can Dance" finale held at the Kodak Theater on August 6, 2009 in Hollywood, California.  (Photo by Alberto E. Rodriguez/Getty Images) (Photo by Alberto E. Rodriguez/Getty Images)

LEVAR BURTON SAYS NOT GETTING ‘JEOPARDY!’ JOB WAS ‘HUMILIATING’: ‘THE FIX WAS IN’

At the time, it was not immediately clear what protocols he did not follow.

"Having the opportunity to be a judge on "So You Think You Can Dance" was an incredible honor for me," Morrison said amid his departure. "Therefore, it is my deepest regret to inform you that I will be leaving the show."

‘SO YOU THINK YOU CAN DANCE’ JUDGE MATTHEW MORRISON OUSTED OVER FAILURE TO FOLLOW SHOW'S PRODUCTION PROTOCOLS

So You Think You Can Dance

General view of the stage at the "So You Think You Can Dance" finale held at the Kodak Theater on August 6, 2009 in Hollywood, California.  (Photo by Alberto E. Rodriguez/Getty Images) (Photo by Alberto E. Rodriguez/Getty Images)

"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 in the statement. "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."

CLICK HERE TO GET THE FOX NEWS APP

Morrison's replacement has not yet been named and most of the season's episodes have already been recorded so he is expected to appear in episodes up until June 15.