I have a problem with the DatePicker component. The attached example is the best explanation of my problem. I try to set a custom css class for a component by passing an array. If the number of items in the array is bigger than zero, the date picker border should be red (it works). But when I add and then remove an element from the array, the border is still red (it shouldn't be).