Author Topic: Uncaught TypeError: Cannot redefine property: nodeClose  (Read 200 times)

RamC

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 7
    • View Profile
Uncaught TypeError: Cannot redefine property: nodeClose
« on: May 01, 2024, 04:30:33 pm »
Hello, we are upgrading from ParamQuery Pro v3.3.0 ParamQuery Pro v9.1.1. We had several web pages created using pqgrid and almost working fine, among them one page where we have PQGrid in Modal popup. It is throwing below JS error while opening Modal popup second time (i.e First time works well, if I closed modal popup and opened again then throwing error).

Uncaught TypeError: Cannot redefine property: nodeClose
    at Function.defineProperty (<anonymous>)
    at new t.cTree (<anonymous>:9:256586)
    at HTMLDocument.<anonymous> (<anonymous>:9:256436)
    at HTMLDocument.dispatch (jquery-3.7.1.js:2:40035)
    at v.handle (jquery-3.7.1.js:2:38006)
    at Object.trigger (jquery-3.7.1.js:2:70124)
    at obj.<computed>.triggerHandler (jquery-3.7.1.js:2:70811)
    at e._create (<anonymous>:9:39969)
    at $.<computed>.<computed>._create (jquery-ui.js:143:25)
    at $.<computed>.<computed>._super (jquery-ui.js:128:35)


It was working fine with ParamQuery Pro v3.3.0 version.

Any thoughts ?


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6260
    • View Profile
Re: Uncaught TypeError: Cannot redefine property: nodeClose
« Reply #1 on: May 01, 2024, 07:22:40 pm »
This error may arise if pqgrid js file is loaded in the page more than once. Please ensure that pqgrid is not reloaded while opening modal popup 2nd time.

If the issue is still not resolved, then please share a small sample of the issue on jsfiddle / stackblitz so that I can look into it.
« Last Edit: May 01, 2024, 07:37:40 pm by paramvir »

RamC

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Uncaught TypeError: Cannot redefine property: nodeClose
« Reply #2 on: May 02, 2024, 11:45:53 am »
Super!! It's working now, I have removed  pqgrid js from Modal popup and added to parent page. Thank You!!