Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Children with fixed ids can break the listview #251

Open
Tiagoperes opened this issue May 4, 2021 · 0 comments
Open

Children with fixed ids can break the listview #251

Tiagoperes opened this issue May 4, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Tiagoperes
Copy link
Contributor

Tiagoperes commented May 4, 2021

Beagle Angular version: 1.7.0

Steps To Reproduce

  1. Create a listview
  2. Inside the listview's template, use a component that names its children something other than children. The component touchable is a good example (it uses child).
  3. Create a component, give it a fixed id, and place it as a child of the component created in the previous step.

Link to code example:

This example uses an image inside a touchable in the template of a list view: https://playground.usebeagle.io/#/cloud/S3-b213d4c3-31b2-4f03-a4e0-e6cdbabb75c3?platform=angular

The current behavior

Every element created in the step 3 will have the same Beagle ID, which is very wrong. The Beagle ID should be a unique identifier.

In the example I linked, another effect is that every image renders the same.

The expected behavior

I expected every component to have a unique Beagle ID, they should be prefixed by the fixed id, but have suffixes like ":0", ":1", etc.

@Tiagoperes Tiagoperes added the bug Something isn't working label May 4, 2021
@jamessonpenhazup jamessonpenhazup self-assigned this May 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants