请问一个自定义组件在点击之后,出现这个错误是什么原因?
组件有嵌套子组件
以下是错误信息:
webviewScriptError
Cannot read property ‘offsetLeft’ of undefined;[Exparser] [Error] [Component] Event Listener Error @ wx-view#(anonymous)
TypeError: Cannot read property ‘offsetLeft’ of undefined
at v (http://127.0.0.1:60463/__pageframe__/__dev__/WAWebview.js:19:30697)
at o.t.(anonymous function).(anonymous function).t.addListener.capture (http://127.0.0.1:60463/__pageframe__/__dev__/WAWebview.js:19:31817)
at r.safeCallback (http://127.0.0.1:60463/__pageframe__/__dev__/WAWebview.js:5:28055)
at r.call (http://127.0.0.1:60463/__pageframe__/__dev__/WAWebview.js:5:27819)
at n (http://127.0.0.1:60463/__pageframe__/__dev__/WAWebview.js:5:30285)
at http://127.0.0.1:60463/__pageframe__/__dev__/WAWebview.js:5:30839
at s (http://127.0.0.1:60463/__pageframe__/__dev__/WAWebview.js:5:29853)
at Function.r.dispatchEvent (http://127.0.0.1:60463/__pageframe__/__dev__/WAWebview.js:5:30740)
at t (http://127.0.0.1:60463/__pageframe__/__dev__/WAWebview.js:7:24206)
at g (http://127.0.0.1:60463/__pageframe__/__dev__/WAWebview.js:7:24691)