-
Notifications
You must be signed in to change notification settings - Fork 123
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
scrollableElement error when double clicking cell #87
Comments
I tested this one on MacOS and safari, it's working fine, but not in linux for chrome / firefox, it also happenned when you try to type something into the cell |
I got the same issue |
I fixed it by removing my Old import React from 'react';
import ReactDOM from 'react-dom/client';
import "@silevis/reactgrid/styles.css";
import './styles/app.css';
import App from './views/App';
import reportWebVitals from './reportWebVitals';
const root = ReactDOM.createRoot(
document.getElementById('root') as HTMLElement
);
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
);
reportWebVitals(); New import React from 'react';
import ReactDOM from 'react-dom/client';
import "@silevis/reactgrid/styles.css";
import './styles/app.css';
import App from './views/App';
import reportWebVitals from './reportWebVitals';
const root = ReactDOM.createRoot(
document.getElementById('root') as HTMLElement
);
root.render(
<App />
);
reportWebVitals(); |
Hello! As @sidikfaha posted, React's strict mode somehow breaks our logic. |
We're currently building the next version of ReactGrid from the ground up and decided to leave this topic in the current state. If you want to use the current version, disable the strict mode while using React 18. |
Hey @czerwiukk, |
Hi, So I have good news!! I updated React to 18, node-sass to sass and changed the config of rollup to use sass instead of node-sass.
I will make a PR for this library so the maintainers will be able to merge it to their library. You can install my library by:
And then you can use the CSS by:
I faced with an error when using strict mode (can't access property "scrollableElement", t is undefined) Please open any issue you face with, |
Describe the bug
when double clicking cell tables gone and this error message show up
'can't access property "scrollableElement", t is undefined'
Current behavior
the table gone and error message show up
Expected behavior
should be able to edit the cell
Screenshots or gifs
Your environment details
Step to produce
completely follow the getting started guide
yarn create react-app --template typescript
yarn install @silevis/reactgrid
HERE IS THE App.tsx
The text was updated successfully, but these errors were encountered: