Skip to content

'Uncollapsing' issue when manually removing objects #248

Description

@jwmaher

Hey there,

I have recently been trying use your library for a situation that it may not of been designed for but has so far worked quite well. I have only come across one issue so far, the 'uncollapsing' of the tokens while manually removing them.

The situation; adding enough tokens for the view to concatenate to +x, then manually removing the tokens that are still visible. The outcome is that the view still displays +x, it is not re-evaluating and un-hiding the hidden spans and adjusting the count number.

Some screenshots of the process

Initial state

Select the first six (calling addObject())

Unselect the still visible tokens (calling removeObject())

Reselect the first three (calling addObject())

As the screenshots show it appears to be some really strange behaviour. Just curious if you have any work-arounds in mind? I have created a project demonstrating the issue here.

Thanks for your help, great library either way.

Activity

  1. mgod commented on Mar 9, 2019

    @mgod
    Contributor

    This is definitely still a bug in 3.0.0.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions