Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScrollBoard 数据不满一页出错 #25

Open
jacktang opened this issue Jan 31, 2021 · 4 comments
Open

ScrollBoard 数据不满一页出错 #25

jacktang opened this issue Jan 31, 2021 · 4 comments

Comments

@jacktang
Copy link

  • 组件: ScrollBoard
  • 版本: 1.2.5
  • 场景: rowNum:10 但是实际数据只有5条(不足10条都可以)
  • 错误:
Uncaught TypeError: resume is not a function
    at handleHover (index.js:381)
    at onMouseEnter (index.js:522)
    at HTMLUnknownElement.callCallback (react-dom.development.js:188)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:237)
    at invokeGuardedCallback (react-dom.development.js:292)
    at invokeGuardedCallbackAndCatchFirstError (react-dom.development.js:306)
    at executeDispatch (react-dom.development.js:389)
    at executeDispatchesInOrder (react-dom.development.js:414)
    at executeDispatchesAndRelease (react-dom.development.js:3278)
    at executeDispatchesAndReleaseTopLevel (react-dom.development.js:3287)
    at Array.forEach (<anonymous>)
    at forEachAccumulated (react-dom.development.js:3257)
    at runEventsInBatch (react-dom.development.js:3304)
    at runExtractedPluginEventsInBatch (react-dom.development.js:3514)
    at handleTopLevel (react-dom.development.js:3558)
    at batchedEventUpdates$1 (react-dom.development.js:21871)
    at batchedEventUpdates (react-dom.development.js:795)
    at dispatchEventForLegacyPluginEventSystem (react-dom.development.js:3568)
    at attemptToDispatchEvent (react-dom.development.js:4267)
    at dispatchEvent (react-dom.development.js:4189)
    at unstable_runWithPriority (scheduler.development.js:653)
    at dispatchUserBlockingUpdate (react-dom.development.js:4172)
@zmm2tysu
Copy link

同样出现了,而且同时会造成卡顿现象,点击事件响应慢等问题

@zmm2tysu
Copy link

data.length > rowNum就不会出现该bug

@sgjy123
Copy link

sgjy123 commented Nov 17, 2021

hoverPause: false,
当数据小于你要循环的一页数的时候修改这个参数,就不报错了

@Symous
Copy link

Symous commented Dec 16, 2021

config = {
   // other params...
   hoverPause: data.length > config.rowNum
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants