Skip to content

table shadow ios bug #791

@aigre87

Description

@aigre87

Describe the bug
Table shadows are incorrectly set in Safari on iOS.
iOS may scroll the container to a negative value.

To Reproduce
just check mobile safari on iphone

Expected behavior
the Y shadow on top should turn off if y <= 0

Screenshots

Image Image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone15]
  • OS: [e.g. iOS17.5]
  • Browser [safari]

Additional context
It seems to be somewhere in the useDataTableInjectCssVariables hook -
function processScrolling() {
const newScrolledToTop = scrollTop === 0;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions