AEM Forms 6.3 DropDown List appends items on new assignment
I'm running AEM Forms 6.3 and experience an issue when dynamically populating a dropdown.
On initialize of a certain field I add an array of items to the dropdown using DropDown.items = array. Now when the filed changes I'd like to replace the items with another set of items. That doesn't work. The new items are appended so the drop down list get's longer. What's strange is that the newly created set of items can be changed but the original assignment is always kept.
Further more printing DropDown.items to the console the correct items show up.
To further illustrate that
# initial assignment - 5 items - DropDown list contains 5 items visually - DropDown.items.length = 5
# new assignment - 3 items - DropDown list contains 8 items visually - DropDown.items.length = 3
Verified in Chrome and Firefox.
We are running AEM Forms JEE - SP1 - available patches are installed.