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

The ScrollBoard would trigger error when rowNum is bigger than data's length #37

Open
fanjieqi opened this issue Nov 28, 2021 · 1 comment

Comments

@fanjieqi
Copy link

Bug report

config = { rowNum: 5, data: [ [1], [2], [3] ] }
<ScrollBoard config={config} style={{width: '500px', height: '220px'}} />

控制台错误输出?

caught TypeError: resume is not a function
    at handleHover (index.js:381)
    at onMouseLeave (index.js:525)
    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)

期望情况?

The rowNum would be the data.length when it's bigger than data.length

  • DataV版本: 1.2.5
  • 浏览器版本: Microsoft Edge 96.0.1054.34
@Symous
Copy link

Symous commented Dec 16, 2021

bug.

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

2 participants