However! I noticed that the added property actually includes elements that are being removed from selection, while the removed one includes elements that are being added.
So currently what I'm doing is
const removedCell = added[0]; and const addedCell = removed[0]; (as I only allow a single selection).
Can you please check that out? I hope that I'm not using something wrong...
Hi guys! First of all this library is so rich, I like it as it gives me a lot of flexibility to do what I want.
I noticed something pretty awkward in the selection model listener. I'm doing something like the following:
However! I noticed that the
added
property actually includes elements that are being removed from selection, while theremoved
one includes elements that are being added.So currently what I'm doing is
const removedCell = added[0];
andconst addedCell = removed[0];
(as I only allow a single selection).Can you please check that out? I hope that I'm not using something wrong...
Thanks! Eyal