Skip to content

Commit

Permalink
fix: expose update in scrollbar.js to fix a error
Browse files Browse the repository at this point in the history
  • Loading branch information
ImJustAMan committed Nov 3, 2020
1 parent 2eb9754 commit f83b723
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/scrollbar/Scrollbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const useScroll = (wrap, native, resize, noresize) => {

return {
data,
update,
handleScroll
}
}
Expand Down Expand Up @@ -89,7 +90,12 @@ export default {
}
}

const { data, handleScroll } = useScroll(wrap, native, resize, noresize)
const { data, handleScroll, update } = useScroll(
wrap,
native,
resize,
noresize
)
return {
// state
data,
Expand All @@ -100,7 +106,8 @@ export default {
resize,
ComponentName,
// methods
handleScroll
handleScroll,
update
}
},
render() {
Expand Down

0 comments on commit f83b723

Please sign in to comment.