Bad implimentation on _removeSelectedItem
Dynamic content selector field control...to remove items from the list you're doing it by matching the name?
Ran into a situation where a character in the name coming down was encoded where the html wasn't (sitefinity did this, nothing custom). So end result was the user couldn't delete the item.
You should be removing by ID
for
(
var
i = 0; i < data.items.length; i++)
if
(data.items[i].OriginalContentId == itemToRemove.data(
"id"
))
this
._selectedItems.items.splice(i, 1);
break
;
<
script
id
=
"ul-template"
type
=
"text/x-kendo-template"
>
<
li
>
<
span
data-bind
=
"text: Title, attr: data-id: OriginalContentId"
> </
span
>
<
a
class
=
"sf_binderCommand_remove sfRemoveBtn remove"
>Remove</
a
>
</
li
>
</
script
>
Hello Steve,
Thank you so much for pointing out this issue and providing us with the solution for it. We will include the fix in the next version of Thunder.
Your telerik points have been updated. Please let me know if I can be of further help.
All the best,
Marin Atanasov
the Telerik team