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

Ikc 47 empty favourites problem #146

Merged
merged 3 commits into from
Jun 28, 2021
Merged

Conversation

ynleborg
Copy link
Contributor

@ynleborg ynleborg commented Jun 24, 2021

Przyczyna błędów to core.js:6456 ERROR Error: NG0100: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'datatable-body-cell sort-active active'. Current value: 'datatable-body-cell sort-active'

Konsekwencji tego błędu jest kilka:

  • znika tabelka po zaznaczeniu pierwszego elementu gdy ulubione są puste
  • znikają "Wszystkie" gdy Ulubione są puste i klikamy inny niz pierwszy
  • grupa "Ulubione" jest zwijana, jeśli dodajemy element do ulubionych i nie jest to pierwszy na liście
  • itd....

(tak na marginesie, to ngx-datatable ma aktualnie otwartych 704 błędów i wiele z nich dotyczy naszej sytuacji, czyli niepoprawnego zachowania tabeli podczas dynamicznego tworzenie/usuwania grup)

po zapoznaniu sie z

zastosowałem trick z setTtimeout bez czasu, zeby wymusić kolejny cykl javascriptowej pętli + czyszczenie listy topików/grup konsumentów

@ynleborg ynleborg merged commit 51b0e70 into master Jun 28, 2021
@ynleborg ynleborg deleted the IKC-47_empty_favourites_problem branch June 28, 2021 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants