react-data-grid icon indicating copy to clipboard operation
react-data-grid copied to clipboard

Not working in the Safari browser

Open abince opened this issue 2 years ago • 2 comments

Describe the bug

The grid does not work in Safari

To Reproduce

  1. Open the link through the Safari browser

Link to code example:

Expected behavior

Should work like other browsers

Environment

  • react-data-grid version: 7.0.0-beta.14 (Same issue even in 7.0.0-beta.18)
  • react/react-dom version: 18.1.0

Additional context

image image

abince avatar Sep 21 '22 06:09 abince

Same issue here, any updates?

leandher avatar Sep 28 '22 14:09 leandher

Any updates? Seems like a critical bug

devnaumov avatar Oct 04 '22 14:10 devnaumov

Which version of safari are you using?

amanmahajan7 avatar Oct 18 '22 22:10 amanmahajan7

This works fine in Safari for me with the provided link and from my local project.

image

paustint avatar Oct 24 '22 03:10 paustint

Mine is working.

csulit avatar Oct 29 '22 11:10 csulit

Same issue in 钉钉app, any updates?

xuyunan avatar Nov 10 '22 05:11 xuyunan

I see the same issue on Version 14.1.1 (16611.2.7.1.4).

damnitrahul avatar Nov 14 '22 05:11 damnitrahul

Please ensure you are importing styles.css. import 'react-data-grid/lib/styles.css';

Also, only latest version of safari is supported.

amanmahajan7 avatar Dec 23 '22 16:12 amanmahajan7

Same issue on Safari 15.1, Mac OSX Monterey

image

tienle avatar Feb 01 '23 16:02 tienle

Hi guys!

You've developed the great grid that fits my project requirements up to 90%, but... Seems like it stopped working correctly right after 7.0.0.-beta-16 in Safari and on Huawei tablets (Huawei browsers).

I see it's working more or less in 7.0.0-beta-16, but not in later versions. Do you have any plans to fix it?

Starting from 7.0.0.-beta-17 I needed to add the import import "react-data-grid/lib/styles.css", and starts crashing... Before I haven't had this import at all.

medvedev-da avatar Feb 09 '23 10:02 medvedev-da

I'm getting this bug on Safari 14.1, but not on later versions. I believe it is because of browser issues with display: contents. The grid defines template columns, then there are rows - divs with display contents-, then comes the cells.

Any workaround?

isacvale avatar May 23 '23 21:05 isacvale

We need display:contents and I am not sure if there is a workaround. I am closing this issue as it is working in the latest version of safari

amanmahajan7 avatar Sep 19 '23 19:09 amanmahajan7

I am on safari latest version and grid is not working. I have correctly imported the style.css file. It works fine in chrome, but not in safari. image

my safari version: 16.4 image

rahulserver avatar Feb 22 '24 11:02 rahulserver

also if this helps, here is my code(next js app index.ts)

import 'react-data-grid/lib/styles.css';
import DataGrid from 'react-data-grid';
const columns = [
  { key: 'id', name: 'ID' },
  { key: 'title', name: 'Title' }
];

const rows = [
  { id: 0, title: 'Example' },
  { id: 1, title: 'Demo' }
];


export default function Home() {
  return (
    <>
      <DataGrid columns={columns} rows={rows} />
    </>
  )
}

package.json:


{
  "name": "errorv13",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },
  "dependencies": {
    "@types/node": "20.11.19",
    "@types/react": "18.2.57",
    "@types/react-dom": "18.2.19",
    "next": "14.1.0",
    "react": "18.2.0",
    "react-data-grid": "^7.0.0-beta.42",
    "react-dom": "18.2.0",
    "typescript": "5.3.3"
  }
}

rahulserver avatar Feb 22 '24 11:02 rahulserver

@rahulserver After struggling with Safari 16.x for a while, I upgraded to 17.5 and it worked fine. good luck

superlucky84 avatar Jun 12 '24 06:06 superlucky84