On Issue boards, the list of active labels in labels dropdown is not updated when clicking on a different card

Summary

The list of active labels on the label dropdown is never updated after the new issue card is clicked.

Steps to reproduce

  1. Open Issue boards
  2. Click on the card A
  3. Open labels dropdown and add 3 labels to card A
  4. Close labels dropdown and wait until labels are applied
  5. Click on the card B (without labels)
  6. Open labels dropdown
  7. All labels from card A are shown as active.

Example Project

The bug reproduces on GitLab.com

What is the current bug behavior?

Labels from the first issue card are shown as active

What is the expected correct behavior?

The active labels list should be updated when the next issue card is selected.

Relevant logs and/or screenshots

labels_list