nstudio / nativescript-checkbox

NativeScript plugin for checkbox UI component
Other
119 stars 56 forks source link

Duplicated toggles in a ListView #88

Open ottomated opened 6 years ago

ottomated commented 6 years ago

My simple page looks like this:

<Page loaded="loaded" 
  xmlns:CheckBox="nativescript-checkbox">
  <ActionBar title="Database" class="action-bar"></ActionBar>
  <StackLayout width="100%" height="100%" backgroundColor="white">
    <ListView width="100%" height="50%" items="{{ personList }}">
      <ListView.itemTemplate>
        <AbsoluteLayout height="50">
          <CheckBox:CheckBox tap="personChecked" height="50" width="100%" text="{{ name }}" checked="false" />
        </AbsoluteLayout>
      </ListView.itemTemplate>
    </ListView>
  </StackLayout>
</Page>

There are about 10 people in my list currently. If I toggle one of the check boxes, it also toggles another one about halfway down the list, without triggering the event. It's not a graphics issue, as by toggling the duplicated one again, it will run the event normally.

bzaruk commented 6 years ago

@ottomated - look what I wrote here