-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multipicklist duplicates value data on refresh #15
Comments
@chewy2 or @trentchilders: Do any of you have a solution for this issue? |
For now, I've just added a quick check before it pushes the duplicate value on to the array.
|
Hi @TomSesselmann, that definitely works. We haven't been able to pinpoint the issue yet on our end. How are you saving the data? |
It's bound to the field using value="{!v....}" and then saved to Salesforce via an APEX upsert |
Just updated to 0.6 from 0.1 and still seeing the issue. If you put a
You should see |
Thanks for the update. Our 0.6.0 release was mainly for two new components that have been in the works for quite some time and we decided they were due for a release. It didn't contain many bug fixes. We will look into this issue for the next patch release. |
@TomSesselmann We ran into an issue with Multi Select Picklist and found something possibly related to your issue. Try editing the component's helper file (
to
This change could fix your issue, and will be part of the next release. Please let us know if this helps! |
That's the same change that I already suggested above 😛 |
Ahh sorry, you're right! Running into it ourselves reminded me that this issue was still open. I wanted to give you an update. Thanks! |
@kevinberonilla We also ran into this. In September ;-). Is this still in testing because the suggested fix doesn't work? Is there an estimate when you are going to release the fix? |
@up2go-rsoesemann at the moment we do not have an estimate on when we will get another release out. We had believed this was no longer an issue. We currently have a lot of project work, so we will not be able to get back to this for a few weeks. |
@TomSesselmann great job, I was also having same issue, luckily it was u that found out. out of curiosity, how did u find out that addToComponentValue was called, or strike_evt_notifyParent is fired. Can u explain a bit! |
The
helper.handleValueOnInit
function callschild.strike_optionSelected()
on each pre-populated option which then sends out a"strike_evt_notifyParent"
which then callshelper.addToComponentValue()
which adds a new value on to the existing value array.So you end up with "option-1;option-1" and if you save that data and refresh again you'll get "option-1;option-1;option-1"
I'm running Release 0.1.0 at the moment but I couldn't see a fix in the changelog.
The text was updated successfully, but these errors were encountered: