Having the time of her life? Nicole Scherzinger accidentally flashes her knickers in risqué gown at Dirty Dancing premiere... before leaving with J. Lo's ex Casper Smart

She nearly turned down her role in Dirty Dancing.

But Nicole Scherzinger seemed to have no regrets as she attended the PaleyLive premiere for the TV reboot in Los Angeles on Thursday.

Seeming to be having the time of her life, the 38-year-old singer failed to notice that her risque gown had ridden up, however, leading to an awkward wardrobe malfunction, which luckily Casper Smart - who she left with - did not appear to see. 

Scroll down for video 

Nobody puts Nicole in the corner! Nicole Scherzinger, 38, failed to notice her risque gown had ridden up, flashing her underwear at Dirty Dancing PaleyLive premiere in LA on Thursday

Nobody puts Nicole in the corner! Nicole Scherzinger, 38, failed to notice her risque gown had ridden up, flashing her underwear at Dirty Dancing PaleyLive premiere in LA on Thursday

Nicole - who plays Penny Rivera in the film - oped for a cream floor length dress with a risque split that ensured she would turn heads.

And all eyes were on the star at the bash, but sadly for the wrong reasons, as her glamorous gown rode up to expose her knickers.  

Oblivious to the wardrobe malfunction, the Poison hitmaker strode past into the venue, layering up with an oversized black blazer that she wore over one shoulder. 

Two's company: Luckily, Casper Smart - who she left with - did not appear to see the slip up 

Two's company: Luckily, Casper Smart - who she left with - did not appear to see the slip up 

A vision in white: Nicole - who plays Penny Rivera in the film - oped for a cream floor length dress with a risque split that ensured she would turn heads

A vision in white: Nicole - who plays Penny Rivera in the film - oped for a cream floor length dress with a risque split that ensured she would turn heads

Moving on: Oblivious to the wardrobe malfunction, the Poison hitmaker strode past into the venue, layering up with an oversized black blazer that she wore over one shoulder

Moving on: Oblivious to the wardrobe malfunction, the Poison hitmaker strode past into the venue, layering up with an oversized black blazer that she wore over one shoulder

Featuring a plunging neckline, the cream gown offered a look at her ample cleavage, whilst she went braless to flash some sideboob. 

Backless in design, the sexy dress was secured with delicate spaghetti straps, whilst the hanky hemline flared over a pair of bronze Schutz heels. 

The X Factor judge finished off the look by sweeping her chestnut locks in a high ponytail with a classic smokey eye and pale pink lip.

Glam: Nicole looked incredible

Chest a glimpse! Featuring a plunging neckline, the cream gown offered a look at her ample cleavage, whilst she went braless to flash some sideboob

Brunette bombshell! The X Factor judge swept her chestnut locks in a high ponytail with a classic smokey eye and pale pink lip

Brunette bombshell! The X Factor judge swept her chestnut locks in a high ponytail with a classic smokey eye and pale pink lip

Chic: The star looked sensational
Head turner: Backless in design, the sexy dress was secured with delicate spaghetti straps, whilst the hanky hemline flared over a pair of bronze heels

Head turner: Backless in design, the sexy dress was secured with delicate spaghetti straps, whilst the hanky hemline flared over a pair of bronze Schutz heels

After she turned heads at the premiere Nicole - who is dating tennis player Grigor Dimitrov - headed to the afterparty at TAO Asian Bistro with Casper Smart, who looked dapper in navy checkered trousers.

The duo were joined by co-stars Sarah Hyland, Abigail Breslin and Colt Pratts. 

The cast enjoyed menu items including the Mandarin orange chicken, tuna pringles, satay of chilean sea bass and lo mein.

Out and about: After she turned heads at the premiere Nicole - who is dating tennis player Grigor Dimitrov - headed to the afterparty at TAO Asian Bistro with Casper Smart, who looked dapper in navy checkered trousers

Out and about: After she turned heads at the premiere Nicole - who is dating tennis player Grigor Dimitrov - headed to the afterparty at TAO Asian Bistro with Casper Smart, who looked dapper in navy checkered trousers

Cosy co-stars: Casper plays Billy Kostecki in Dirty Dancing - who helps Nicole's character Penny have an abortion after she accidentally falls pregnant by another man

Cosy co-stars: Casper plays Billy Kostecki in Dirty Dancing - who helps Nicole's character Penny have an abortion after she accidentally falls pregnant by another man

Casper famously dated Jennifer Lopez for five years, but split in the summer of 2016 claiming their romance came to a 'natural end'. 

The back-up dancer first became J.Lo's squeeze back in 2011, and though they briefly broke up in 2014, they reunited shortly thereafter until last August.  

The 29-year-old, who's 13 years Jennifer's junior, recently said the former lovers are 'friends' who've got 'nothing but, like, respect and love for each other.' 

Cute:  Nicole was joined by her co-star Sarah Hyland at the premiere, with the pair wrapping each other in a warm embrace

Cute: Nicole was joined by her co-star Sarah Hyland at the premiere, with the pair wrapping each other in a warm embrace

Two's company: The duo looked sweet as they held each other close at the bash

Two's company: The duo looked sweet as they held each other close at the bash

Casper plays Billy Kostecki in Dirty Dancing - who helps Nicole's character Penny have an abortion after she accidentally falls pregnant by another man. 

Penny falls pregnant in the original film and opts for an illegal abortion, forcing Baby to step in and dance with Johnny Castle, who was originally played by Patrick Swayze.

And due to her strong anti-abortion beliefs, Nicole revealed that she nearly turned down the role.  

Radiant in red: Nicole looked equally as ravishing at the Dirty Dancing photocall 

Radiant in red: Nicole looked equally as ravishing at the Dirty Dancing photocall 

Chic: The starlet donned a crimson suit which flattered her tanned complexion
Chic: The starlet donned a crimson suit which flattered her tanned complexion

Chic: The starlet donned a crimson suit which flattered her tanned complexion 

She told The Daily Mail: 'I was like a crazy thing because, my family, my Papa's a Bishop and my family's really hardcore against abortion.'

'So I got the role and I almost didn't take it because I didn't want to promote abortion, because my character has an abortion. But I was like, hopefully they can learn from you know her ways and I can be a positive influence.

'My mum got pregnant with me when she was 17 and had me when she was 18. She chose. Her parents were never going to let her have an abortion. So I came out, so I just want to you know encourage everybody to keep your babies.' 

The ABC reboot of Dirty Dancing also stars Abigail Breslin, Debra Messing and Sarah Hyland and will be aired on May 28 at 8pm.

Yes she can! Nicole seemed in great spirits as she posed for snaps on the day 

Yes she can! Nicole seemed in great spirits as she posed for snaps on the day 

The comments below have not been moderated.

The views expressed in the contents above are those of our users and do not necessarily reflect the views of MailOnline.

We are no longer accepting comments on this article.