Jquery UI error - f.getClientRects is not a function

前端 未结 7 1107
不知归路
不知归路 2020-12-08 18:25

I\'m trying to make Jquery UI work, but it doesn\'t. Here\'s what happens. I\'m loading dependencies:



        
7条回答
  •  南方客
    南方客 (楼主)
    2020-12-08 19:01

    After doing all of the updates and STILL having the problem, I just fixed it in the code:

    Look for this:

    if ( !elem.getClientRects().length ) {
        return { top: 0, left: 0 };
    }
    

    Enter this just before it:

    if (!elem.getClientRects()) {
        return { top: 0, left: 0 };
    }
    

提交回复
热议问题