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

arrow still shown when data-sort-method='none' #137

Closed
pheyvaer opened this issue Jun 22, 2017 · 2 comments
Closed

arrow still shown when data-sort-method='none' #137

pheyvaer opened this issue Jun 22, 2017 · 2 comments

Comments

@pheyvaer
Copy link

I think https://github.com/tristen/tablesort/blob/gh-pages/src/tablesort.js#L113 should move inside the if that follows. That solves the problem in my case.

@tripu
Copy link
Collaborator

tripu commented Jun 2, 2020

Have you tried adding the no-sort class to the column (<th>)?
That prevents the arrow from showing when hovering over, and also fixes the cursor (no pointer).

<table id="tests" class="sort">
  <thead>
    <tr>
      <th>foo</th>
      <th data-sort-method="none" class="no-sort">bar</th>
      <th>baz</th>
    </tr>
  </thead>
  <tbody></tbody>
</table>

@savisky
Copy link

savisky commented Jun 2, 2020

Have you tried adding the no-sort class to the column ()?
I tried its working. Thanks!

@tripu tripu closed this as completed Jun 2, 2020
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

No branches or pull requests

3 participants