Parent Child Click Behaviour cases an error when moving from one row to another

Parent Child Click Behaviour cases an error when moving from one row to another

ChopShopChopShop Posts: 17Questions: 5Answers: 0
edited February 2023 in Free community support

Link to test case:
http://chopshop.duckdns.org:5000/bundles

Debugger code (debug.datatables.net):
https://debug.datatables.net/ihevah
Error messages shown:
dataTables.editor.min.js:6 Uncaught TypeError: Cannot read properties of null (reading 'options')
Description of problem:
So If I select a row in the parent everything is fine and the child updates.
When I deselect - same thing all is fine.
When I have a parent row selected and then try to select a different row then that error above is generated and the child fails to update.

This question has accepted answers - jump to:

Answers

  • kthorngrenkthorngren Posts: 21,341Questions: 26Answers: 4,954

    Do you see the XHR request being cancelled in the browser's network inspector? If so then I believe this thread is discussing the same issue.

    Kevin

  • ChopShopChopShop Posts: 17Questions: 5Answers: 0

    It seems to be related but different.
    In my scenario the first click selects the parent and all is well. The request goes out and the data is returned. So that is complete. Then when I click on the row below the top one is deselected and the row beneath selected. That is when the error occurs. There is no network traffic during this event.
    We need some way to consolidate the two events since the occur at the same time there is some conflict occurring. My best guess.

  • kthorngrenkthorngren Posts: 21,341Questions: 26Answers: 4,954
    Answer ✓

    Sorry I missed your test case. Yes the problem is the request is cancellled:

    I believe its the same issue as the other thread.

    Kevin

  • ChopShopChopShop Posts: 17Questions: 5Answers: 0

    I see it now. I guess it is the same case. The description of the problem on that thread threw me off.

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    Answer ✓

    Yup - that's exactly the issue I'd say. I'm going to tag and release Editor 2.1.1, probably early next week, with the fix for this.

    Allan

Sign In or Register to comment.