Problem with clear richSelect component

Hello,

I have a problem with richSelect component.
Some week ago I have ask about the refresh the ‘options’ property with the solution:

$$(‘richselect1’).getPopup().getList().parse(list);

This code add the new list under the old list, how I can clear all the values before reload the new list?

Thanks,
Daniele

You can clear the list with its clearAll method:

$$('richselect1').getPopup().getList().clearAll();

it works, thanks!