Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entire notification drawer flashes on update #1981

Closed
spadgett opened this issue Aug 29, 2017 · 7 comments
Closed

Entire notification drawer flashes on update #1981

spadgett opened this issue Aug 29, 2017 · 7 comments
Assignees
Labels
area/usability kind/bug Categorizes issue or PR as related to a bug. priority/P2

Comments

@spadgett
Copy link
Member

@jeff-phillips-18 @benjaminapetersen We should look at adding a track by for event UID if possible (and add UIDs to other toasts when we add them to the drawer). Right now the entire drawer contents flashes because we haven't gotten track by right.

@spadgett spadgett added area/usability kind/bug Categorizes issue or PR as related to a bug. priority/P2 labels Aug 29, 2017
@spadgett
Copy link
Member Author

Probably requires upstream angular-patternfly changes.

@spadgett
Copy link
Member Author

screencast 2017-08-29 07-58-53

@spadgett
Copy link
Member Author

@benjaminapetersen Per our conversation, let's remove any CSS animations until we can get track by working upstream.

@jeff-phillips-18
Copy link
Member

@spadgett Do you think using track by $index will not help this issue?

@spadgett
Copy link
Member Author

spadgett commented Aug 29, 2017

@jeff-phillips-18 I don't think so because the index in the array for a particular event changes when items are added and removed.

Edit: Or reordered like below.

@spadgett
Copy link
Member Author

Part of the problem is that the same event appears twice momentarily in the drawer.

Video:

screencast 2017-08-29 12-33-49

Here's a frame from the video with the same item in the drawer twice:

screen shot 2017-08-29 at 12 35 10 pm

@spadgett
Copy link
Member Author

Yeah I think it is because of a missing or bad track by. The item moves from the bottom of the list to the top, but AngularJS doesn't know that it's really the same item so you have the remove animation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/usability kind/bug Categorizes issue or PR as related to a bug. priority/P2
Projects
None yet
Development

No branches or pull requests

3 participants