Console error when dragging the rectangle to the top side of the page
gridstack.js:153 Uncaught TypeError: Cannot read property 'scrollTop' of null
at Object.updateScrollPosition (VM282 gridstack.min.js:1)
at HTMLDivElement.t (VM282 gridstack.min.js:1)
at $.(/anonymous function).(anonymous function)._trigger (https://code.jquery.com/ui/1.12.1/jquery-ui.js:697:13)
at $.(/anonymous function).(anonymous function)._trigger (https://code.jquery.com/ui/1.12.1/jquery-ui.js:10264:38)
at $.(/anonymous function).(anonymous function)._trigger (https://code.jquery.com/ui/1.12.1/jquery-ui.js:144:25)
at $.(/anonymous function).(anonymous function)._mouseDrag (https://code.jquery.com/ui/1.12.1/jquery-ui.js:9774:14)
at $.(/anonymous function).(anonymous function)._mouseDrag (https://code.jquery.com/ui/1.12.1/jquery-ui.js:144:25)
at $.(/anonymous function).(anonymous function)._mouseMove (https://code.jquery.com/ui/1.12.1/jquery-ui.js:9427:9)
at $.(/anonymous function).(anonymous function)._mouseMove (https://code.jquery.com/ui/1.12.1/jquery-ui.js:144:25)
at HTMLDocument._mouseMoveDelegate (VM57 jquery-ui.js:9378)
gridstack 4.0
lodash 4.17.1
Chrome 66.0.3359.181 64 bits
Example:
https://jsbin.com/fuqomekoja/edit?html,js,output
Just drag one of the rectangles to the top side of the page with the Chrome Console (F12) opened
Tell us what should happen
Tell us what happens instead
Thanks - this should be fixed in the dev branch in the next few days.
This error is still active
+1
解决方法:
Most helpful comment
This error is still active