Strange behavior : removeTrait and addTrait are abruptly behaving dynamically #3995
Unanswered
codingmachine16
asked this question in
Q&A
Replies: 1 comment
-
Traits read the value from the component, so if you need to change that value, change it at the component level, eg. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @artf
e.addTrait(
{
label: "Categories",
name: "sourceCategoriesAttr",
id: "sourceCategoriesAttr",
type: "select",
options: [{name:"addidas", value:"addidas"},{name:"Nike","value:Nike"},{name:"Reboke",value: "Reboke"}],
changeProp: 1,
},
);
and on another event removing Traits like below
It is working fine upto here. But when add Traits again on the first event, it keep previous value selected. How to get rid of selected value.
Please help.
Regards
Beta Was this translation helpful? Give feedback.
All reactions