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

Search feature failing to clear highlight when reusing cell DOM with custom column renderer #10524

Open
emilschutte opened this issue Dec 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@emilschutte
Copy link

emilschutte commented Dec 19, 2024

In a tree Gantt with a custom renderer for a name column and the Search feature enabled, search highlights create a yellow span class="b-search-hit-text" inside the matching cells which then remains after the cell DOM element is reused for a new record that no longer matches the search (after scroll), leaving incorrect text highlighted yellow. The cell does get its b-search-hit class removed but the incorrect inner DOM remains.

Column renderer:

renderer: ({ record }) => ({
  children: [
    {
      tag: 'span',
      text: record.name,
    },
    record.children?.length > 0
      ? {
          class: 'b-child-count',
          text: record.children.length,
        }
      : null,
  ],
}),

So far unsuccessful at creating a repro case.

@matsbryntse matsbryntse added the bug Something isn't working label Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants