Issue #1106Opened May 13, 2018by kuldeepcis0 reactions

traits setting not work after reload

Question

Hello @artf previous issue

Yes, you're right traits are there but you didn't read the my issues those I'm facing.

1. when you drag and drop a social element, to change the value you've to select element first after that parent of that. Direct element not selected. 2) Traits value not pre-selected on page load. 3) when you export it the facebook icon is not having the URL which we set.Please let me know how we can do that.

Answers (2)

artfMay 14, 20180 reactions
  1. This is because you're selecting your div wrapper and not the actual component, you can make not selectable: <div data-js="social-icons" data-gjs-selectable="false"> ...
  2. Trait's value is set from the component's model, so if you use changeProp the value is inside component.get(TRAIT_NAME) otherwise component.getAttributes()[TRAIT_NAME]
  3. The final code is built from the model, not from what YOU edit in canvas. When you trigger the method on change:facebook_url and do facebookUrl.href = facebook_url you're just updating the view and not the model of that element. Please read carefully here
lock[bot]September 17, 20190 reactions

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.