DEV Community

Sebastian Cheung CQF
Sebastian Cheung CQF

Posted on • Edited on

React TypeError property of 'label' undefined when order of removal changes in multidropdownlist

I have a multiple dropdown list select. Say if i select items 1 and 3, then remove 1 and 3 in that order there is no issue, but if I remove items in some reverse order then I get : TypeError property of 'label' undefined?

Top comments (1)

Collapse
 
scheung38 profile image
Sebastian Cheung CQF

Am I missing something very simple?