Discovered that the data-id attribute was not being written if you were passing an array to Treedropdownfield.