Skip to content

Recycled choice views keep the previous choice's media in selects #7393

Description

@grzesiek2010

Problem description

When a list of choices is long enough to scroll, scrolling it up and down mixes up the media between choices. A choice can show another choice's image, another choice's "file missing" message, or a play/video button that doesn't belong to it.

  1. A choice with no image shows another choice's image.
  2. A choice with no image shows another choice's "file missing" message.
  3. A choice whose image file is missing shows another choice's image.
  4. A choice with a working image keeps another choice's "file missing" message.
  5. A choice with no audio keeps another choice's play button. Tapping it plays the other choice's clip.
  6. A choice with no video keeps another choice's video button. Tapping it opens the other choice's file.
  7. Tapping a choice's image opens another choice's big-image. The choice has no big-image of its own, so the tap should just select it - instead the previously bound choice's full-screen image opens.
  8. The same happens in no-buttons appearance. NoButtonsItem switches between an image and a text label the same way, so a reused cell shows the previous cell's image, or its text on top of an image.

Steps to reproduce the problem

Open the attached form and follow the reproduction steps described in each question:
select-choice-recycling-cases.zip

Expected behavior

Every choice shows only its own media. A choice without an image, audio, video or big-image shows none of them, regardless of what was displayed in that row before.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions