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

Uncaught TypeError: Cannot read properties of undefined (reading 'parent') #819

Open
paustint opened this issue Apr 4, 2024 · 1 comment
Assignees
Labels

Comments

@paustint
Copy link
Contributor

paustint commented Apr 4, 2024

This is somehow related to keyboard navigation, but has not reproducible.

Attempts:

  • Query results with a lot of records and a lot of columns
  • Subquery results in modal (I did notice that navigation on both tables are triggered - we could listen for these events and stop propagation)
  • all sorts of navigation (cells, header, home/end, page up/down, tab, etc..)

Demo showing that everything works on my machine.... 🤷
https://jam.dev/c/9ff76942-5714-47ef-a917-04fb1ac389e7

View details in Rollbar: https://app.rollbar.com/a/jetstream/fix/item/Jetstream/1396

TypeError: Cannot read properties of undefined (reading 'parent')
  File "https://getjetstream.app/index-xTjQOZ96.js", line 459, in n$e
  File "https://getjetstream.app/index-xTjQOZ96.js", line 459, in Gt
  File "https://getjetstream.app/index-xTjQOZ96.js", line 459, in vr
  File "https://getjetstream.app/index-xTjQOZ96.js", line 71, in Object.jZ
  File "https://getjetstream.app/index-xTjQOZ96.js", line 71, in WZ
  File "https://getjetstream.app/index-xTjQOZ96.js", line 71, in VZ
  File "https://getjetstream.app/index-xTjQOZ96.js", line 71, in OR
  File "https://getjetstream.app/index-xTjQOZ96.js", line 71, in BF
  File "https://getjetstream.app/index-xTjQOZ96.js", line 71, in [anonymous]
  File "https://getjetstream.app/index-xTjQOZ96.js", line 74, in cC

Actual stacktrace

Cannot read properties of undefined (reading 'parent')
TypeError: Cannot read properties of undefined (reading 'parent')
  File "../../../node_modules/react-data-grid/lib/bundle.js", line 227, in n$e
        let parent = nextColumn.parent;
  File "../../../node_modules/react-data-grid/lib/bundle.js", line 2531, in Gt
        const nextSelectedCellPosition = getNextSelectedCellPosition({
  File "../../../node_modules/react-data-grid/lib/bundle.js", line 2278, in vr
            navigate(event);
  File "../../../node_modules/react-dom/cjs/react-dom.production.min.js", line 54, in Object.jZ
    typeof c)throw Error(p(231,b,typeof c));return c}var Lb=!1;if(ia)try{var Mb={};Object.definePrope...
  File "../../../node_modules/react-dom/cjs/react-dom.production.min.js", line 54, in WZ
    typeof c)throw Error(p(231,b,typeof c));return c}var Lb=!1;if(ia)try{var Mb={};Object.definePrope...
  File "../../../node_modules/react-dom/cjs/react-dom.production.min.js", line 55, in VZ
    function Ub(a,b,c,d,e,f,g,h,k){Tb.apply(this,arguments);if(Ob){if(Ob){var l=Pb;Ob=!1;Pb=null}else...
  File "../../../node_modules/react-dom/cjs/react-dom.production.min.js", line 105, in OR
    function nf(a,b,c){var d=a.type||"unknown-event";a.currentTarget=c;Ub(d,b,void 0,a);a.currentTarg...
  File "../../../node_modules/react-dom/cjs/react-dom.production.min.js", line 106, in BF
    function se(a,b){b=0!==(b&4);for(var c=0;c<a.length;c++){var d=a[c],e=d.event;d=d.listeners;a:{va...
  File "../../../node_modules/react-dom/cjs/react-dom.production.min.js", line 117, in [anonymous]
    0<d.length&&(e=new Ld("onBeforeInput","beforeinput",null,c,e),g.push({event:e,listeners:d}),e.dat...
  File "../../../node_modules/react-dom/cjs/react-dom.production.min.js", line 274, in cC
    function Rk(a,b){var c=K;K|=1;try{return a(b)}finally{K=c,0===K&&(Hj=B()+500,fg&&jg())}}function ...
@paustint paustint self-assigned this Apr 4, 2024
@paustint paustint closed this as completed Apr 5, 2024
@paustint
Copy link
Contributor Author

paustint commented Apr 6, 2024

Opened issue here adazzle/react-data-grid#3483
Related occurrences: #817 #775 #769 #749 #724 #709 #695 #685

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

No branches or pull requests

1 participant