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

Table header highlight not showing on hover #947

Open
aemc opened this issue Apr 12, 2022 · 0 comments
Open

Table header highlight not showing on hover #947

aemc opened this issue Apr 12, 2022 · 0 comments

Comments

@aemc
Copy link

aemc commented Apr 12, 2022

I am trying to have sorting enabled on my table. When a user clicks on a header, the client does an API request to fetch sorted data based on the column. This functionality works w/ the following:

<t.head
  @columns={{@tableColumns}}
  @onUpdateSorts={{this.handleColumnHeaderClick}}
  @widthConstraint="eq-container"
  as |h|
>
  <h.row as |r|>
    <r.cell class="FileManager_tableCell" as |column columnMeta|>
      <span class="FileManager_tableHeader">
        {{column.name}}
        {{#if column.isSortable}}
          {{alloy-icon name='sort' size='small'}}
        {{/if}}
      </span>
    </r.cell>
  </h.row>
</t.head>

However when I hover my mouse, I don't get the highlight css.

The tableColumns I passed in is:

tableColumns = [
    { name: '', valuePath: 'fileType', textAlign: 'right', width: 50, isSortable: false },
    { name: 'Name', valuePath: 'name', textAlign: 'left', width: 300, isSortable: true },
    { name: 'Location', valuePath: 'location', textAlign: 'left', width: 100, isSortable: true },
    { name: 'Shared with', valuePath: 'sharedWith', textAlign: 'left', width: 100, isSortable: false },
    { name: 'Last used', valuePath: 'lastUsed', textAlign: 'left', width: 50, isSortable: true },
    { name: '', width: 50 },
  ],

Am I missing something here?

Running "ember-table": "^3.3.1",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant