• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Copy Component Does Not Keep States

Contributor ,
Sep 25, 2023 Sep 25, 2023

Copy link to clipboard

Copied

I have searched other similar posts but was not exactly clear. I have a component state of a Date flied dropdown labeled "From". I want to duplicate it with a "To" label. Instead of working as it should it loses all its states/behaviors. I really do not want to do all of it again. I tried the reccommended alternatives form other posts but I cannot get it to work.

 

FYI: My company is blocking Dropbox so I cannot post the XD file.

TOPICS
Design , How to , Known Issue , Product performance , Prototyping

Views

143

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 27, 2023 Sep 27, 2023

Copy link to clipboard

Copied

Hey there. Didn't understand, are you duplicating the whole component, creating an instance, or are you copying a state within a component? Can you upload some screenshots of what you're trying to achieve?

 

P.S. If you're trying to make another main component out of this one, you have to create a new file, copy it there, and then copy it from that file back to the original file.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Sep 27, 2023 Sep 27, 2023

Copy link to clipboard

Copied

I will try to post screenshots but I do not think they will help much. In the meantme, I did put in a request for the IT at my company to give me access to Dropbox.

 

I am trying to copy an entire component and not just specific states. The states copy but they are not wired so I have to go and manually repeat all the steps again which I do not want to do if I can avoid it. I want to duplicate the "From" component and just change the label to "To".

Syeds_0-1695881442287.pngSyeds_1-1695881540981.png

Syeds_2-1695881592434.png

Syeds_3-1695881634966.png

 

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Oct 03, 2023 Oct 03, 2023

Copy link to clipboard

Copied

LATEST

Thank you for your suggestion. I did try that but the component lost all of the behaviors in the new file after I copied it from its original location. I do not want ot delay this any longer, I am just going to have to wire up the prototype on the duplicate.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines