Code: Select all
key: 'onTransfer',
value: function onTransfer(event) {
switch (event.direction) {
case 'toTarget':
if (this.props.onMoveToTarget) {
this.props.onMoveToTarget({
originalEvent: event.originalEvent,
value: this.props.selectedItemsSource
});
}
break;
Code: Select all
value: this.props.selectedItemsSource
I tried to get value from event of onMoveToTarget(event), but it return undefined
I changed the PickList.js with new code, that value assigned from state, event.value look good now.
Maybe I don't have a deep down about props.selectedItemsSource, but the document don't mention it for passing props.
Could anyone fix this one at next version of PrimeReact ?