jspreadsheet / jspreadsheet/ce

header sorting is not work in HTML Column.

Open
#1,693 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
7.2k
Forks
890
PR merge metrics
No merged PRs in 30d

Description

e.g.

columns: [
 { title: `<div>ONE</div><div>TWO</div>` }
],
stripHTML: false,

When doubleclick on header, e.target is div element.
it has not "data-x" attribute.

I think that should be get td element in getElement or new method.

I am concerned about the overlap between custom HTML headers and sort markers, but I think this should be handled by the user.
Currently, there is still overlap in very small columns.

I am also concerned that HTML cannot be used in Nested Header.

--
sorry, i'm not good at english.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported double-click sorting case with an HTML header containing nested div elements and stripHTML set to false. Trace the header sorting path around getElement and verify that sorting works when the event target is a nested div rather than the table cell, while preserving the stated concerns about sort-marker overlap and nested headers.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.