Skip to content

Prepending into list of selection (suggestion on possible workaround) #46

@tkd-itsuki

Description

@tkd-itsuki

I am trying to create a dynamic date picker where I add at the start or end of the array depending whether the user is selecting the past dates or future dates.
Using list.push works well with animation because the currentIndex isn't change but putting new values in front of the array using list.unshift results into currentIndex being changed thus resulting in the following animation.
any suggestion/workaround on this?

2021-06-15.3.46.06.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions