DomTemplate icon indicating copy to clipboard operation
DomTemplate copied to clipboard

BindCallback - make it optional to return the listItem

Open g105b opened this issue 3 years ago • 0 comments

The docs specify that the bind callback must return the listItem, allowing you to manipulate the contents before it's used.

This is true, but isn't enforced - meaning that if nothing is returned, the listItem will be set to null, and therefore no automatic binding will occur.

The callable should be made to return array|null. If the array is returned, use it as a BindableKVP. If null is returned, keep the original, assuming no changes have been made.

g105b avatar Aug 18 '22 16:08 g105b