Closed feyhong1112 closed 4 months ago
you don't need all that stuff to debug this only have the GridStack.init() and see why it is not finding that dom element - the error msg is pretty clear! nothing obvious comes up, but don't have time to debug your app.
My problem in the console is so unclear. I already make var grid = GridStack.init outside the fuction but I unable to solve this problem Error log: 1) GridStack.initAll() no grid was found with selector ".grid-stack" - element missing or wrong selector ? Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector. 2) Uncaught TypeError: Cannot read properties of null (reading 'load')
The problem 1) will be gone if I put gridSrack.initAll inside updateUI()
My full code:
body part:
Thank you in advance. Thank you for your dedicate time