0
是否可以將react-custom-scrollbars
與react-autosuggest
結合使用? 我寫這爲auto-suggest
,但它不能正常工作:使用react-autosuggest與react-custom-scrollbars
renderSuggestionsContainer({ containerProps, children, query }) {
const callRef = scrollbars => {
if (scrollbars !== null) {
ref(scrollbars);
}
}
return (
<Scrollbars
autoHeight
autoHeightMax={240}
id={this.props.id}
ref={callRef}
renderTrackVertical={() => <div className="scrollbars-wrapper" />}
renderThumbVertical={() => <div className="scrollbar-handler" />}>
{children}
</Scrollbars>
);
}
如何?
如果想實現
謝謝RANVIR。 'react-autosuggest'也滾動。但我想定製它。我選擇了「react-custom-scrollbars」來做到這一點,但我不能配置它們一起工作。 –