amethyst icon indicating copy to clipboard operation
amethyst copied to clipboard

[BUG] Deleting "not last" poll options in note breaks creation of poll

Open davotoula opened this issue 1 year ago • 6 comments

Describe the bug Deleting a poll option that is not last in the list causes issues.

To Reproduce Steps to reproduce the behavior:

  1. Click to create a new note
  2. Add two or more poll options
  3. Delete poll options in the middle of the list

Expected behavior Poll list can still be edited by adding new items or removing items.

Actual behaviour

  1. Unable to add additional poll options
  2. Unable to delete additional poll options
  3. Bit random in terms what can be added / removed aftwards

Device (please complete the following information):

  • Phone Brand/Model: Pixel 7 Pro
  • Android Version: 33
  • App Version: v0.71.0

davotoula avatar Jul 30 '23 10:07 davotoula

@davotoula I tested this and it does not crash for me. However, I experience inconsistent behaviour, whereby the option below the deleted one does not replace it in the UI, and the last option disappears from the view(and does not show up even upon deletion of the options above it).

KotlinGeekDev avatar Aug 03 '23 16:08 KotlinGeekDev

The app didn't crash for me but the poll option became unusable... Just like you described.

davotoula avatar Aug 03 '23 19:08 davotoula

Bit better but still behaves funny when you delete middle options.

davotoula avatar Sep 07 '23 11:09 davotoula

@davotoula please does this still happen again?

KotlinGeekDev avatar Nov 10 '23 11:11 KotlinGeekDev

Unfortunately yes. It feels a bit more resilient but you still get the following if you remove middle options and keep adding new:

When you add a new option you see values from and older deleted option

Delete middle option but instead the last option was deleted

Add middle option and an additional last option appears with an old value

Some others 😂

davotoula avatar Nov 10 '23 11:11 davotoula

Unfortunately yes. It feels a bit more resilient but you still get the following if you remove middle options and keep adding new:

When you add a new option you see values from and older deleted option

Delete middle option but instead the last option was deleted

Add middle option and an additional last option appears with an old value

Some others 😂

I see :sweat_smile:

KotlinGeekDev avatar Nov 10 '23 15:11 KotlinGeekDev