@emilianogiovannini0 It should take the current value array, reverse its order, take the first item (which is the last to be selected), put it in an empty array and assign it to the tags value.
I don’t know why it doesn’t work for you, but it worked for me when I tried it a long time ago.