I just noticed a strange error in my javascript console when I'm creating a DateItem where I only want year/month to be visible. I do it like this:
It works fine, but I get this in the console:
DateItem.setDaySelectorProperties(): the SelectItem passed has already been applied to an Object; unable to apply it again
I don't get it since literally just created both objects. Can I do something to fix this?
Code:
SelectItem props = new SelectItem(); props.setHidden(true); props.setReadOnly(); props.setDisabled(true); props.setVisible(false); yearMonthItem = new DateItem(); yearMonthItem.setShowPickerIcon(false); yearMonthItem.setTitle("Month/Year"); yearMonthItem.setDaySelectorProperties(props);
DateItem.setDaySelectorProperties(): the SelectItem passed has already been applied to an Object; unable to apply it again
I don't get it since literally just created both objects. Can I do something to fix this?
Comment