mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fixed issue with binding gestures to repeater items.
This commit is contained in:
@@ -149,8 +149,8 @@ export class Repeater extends viewModule.CustomLayoutView implements definition.
|
||||
for (i = 0; i < this.items.length; i++) {
|
||||
var viewToAdd = !types.isNullOrUndefined(this.itemTemplate) ? builder.parse(this.itemTemplate, this) : this._getDefaultItemContent(i);
|
||||
if (!types.isNullOrUndefined(viewToAdd)) {
|
||||
this.itemsLayout.addChild(viewToAdd);
|
||||
viewToAdd.bindingContext = this._getDataItem(i);
|
||||
this.itemsLayout.addChild(viewToAdd);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user