Always trigger the  event before removing elements