Skip to content

ModusTable - row actions - header scrolling when maxHeight is used to scroll table data #3384

@axelsean

Description

@axelsean

Prerequisites

Describe the issue

Using ModusTable there are 100 data rows, but to use the page efficiently only 400px worth - set by maxHeight are used.

Each row has a row action

When the table data scrolls, the row action scrolls, BUT the row action header also scrolls

Row.Action.Scrolling.mov

Code used

<ModusTable columns={tableColumns} data={gridData[object.instanceId] || []} sort={true} onSortChange={(event: ModusTableCustomEvent<ModusTableSortingState>) => handleSort(event)} sortIconStyle={"directional"} showSortIconOnHover={true} maxHeight="400px" manualPaginationOptions={paginationOptions} onRowSelectionChange={(e: ModusTableCustomEvent<unknown>) => handleRowSelection(object, e.detail)} rowActionsConfig={object.actions && object.actions.some((action: any) => action.rowSpecific)? { header: "Actions" } : undefined} rowActions={rowActions} />

Reduced test cases

No response

What operating system(s) are you seeing the problem on?

No response

What browser(s) are you seeing the problem on?

No response

What is the issue regarding ?

@trimble-oss/modus-web-components

What version of npm package are you using ?

No response

Priority

High

What product/project are you using Modus Components for ?

Trimble Unity Pavement

What is your team/division name ?

AgileAssets

Are you willing to contribute ?

None

Are you using Modus Web Components in production ?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is wrong and needs to be addressedexternal-requestBugs and features reported by individuals from other teams in Trimble

    Type

    No type

    Projects

    Status

    In Review

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions