Deselect documents in a view (XPage/dojo)

Hello,

Looking for some help with my dojo picklist (which works great). When I select documents in the view/viewpanel, and add them to the field, it works great…but when I click it again to select another entry, it has kept the previous one checked!

Could someone please tell me how to deselect the entries before I close the dojo popup?

I tried looking up the help for restoreState on the viewPanel, but it doesn;t work (and there doesn’t seem to be help topics on it)

Thanks very much.

Jamie