Skip to content

Trying to upgrade from 8.0.27 -> 9.2.0 #1544

Discussion options

You must be logged in to vote

I think your issue is how you're using onChange the first argument isn't props, this was documented in the changelog here and also in the props section of the docs.

In short, you might need to change:

  onChange: (props: { x: number }) => {
    if (containerRef.current) {
      containerRef.current.scrollLeft = props.x;
    }
  },

to:

  onChange: (result) => {
    if (containerRef.current) {
      containerRef.current.scrollLeft = result.value.x;
    }
  },

However, if you're still having issues, if you can make a CodeSandbox I can take a look 👍🏼

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dphildebrandt
Comment options

Answer selected by dphildebrandt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants