PickList move-all-to-target fires at the wrong moment. Possible bug? #3393
Unanswered
renewestenberg
asked this question in
PrimeVue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm adding a sort function to my PickList that gets called at the move-* events. Unfortunately when moving all items to the other side of the PickList the sorting doesn't work. When moving 1 item at the time the sorting does work.
This is caused by the fact that the move-to-target event gets called after the item is moved to the other array.
At the moment the move-all-to-target event gets called the items are still in the old position.
Same is true for the move-to-source and move-all-to-source events.
The docs are unclear when the event should be called but after the move makes more sense and both move-to-* and move-all-to-* should behave the same.
Got sorting working by using the selection-change event.
Beta Was this translation helpful? Give feedback.
All reactions