Skip to content

v4.0.0

Compare
Choose a tag to compare
@Grsmto Grsmto released this 20 May 21:49
· 667 commits to master since this release

⚠️Breaking change!

  • There is a new wrapper inside the generated HTML: .simplebar-content-wrapper. So if you were depending on the DOM order, it might break your implementation.

Also cause of this change, getScrollElement() does not return anymore the content element.
You will need to use getContentElement() instead.

  • SimpleBar does not apply height: inherit to the container anymore.
    **So if you are seeing the native scrollbar after upgrading it's probably because you didn't apply a size to your element before applying SimpleBar to it! **
    Try to set height: 100% to your element, in most cases it should solves it.

🐞 Bug Fixes

simplebar

  • Use Terser instead of Uglify to fix a production only bug bf07b37
  • autoHide option not applied if DOM already built (fix #262) d9a2c73
  • SimpleBar now recalculates properly when a children size is changing (on hover for example)
  • Using a display: flex layout is now more widely supported (fix #253 #243) 0c7659f
  • Tracks and scrollbars do not trigger a native scroll anymore in certain scenarios f6ea771
  • Avoid SimpleBar to be instantiated twice on the same node (#295) 3bb3f81
  • Fix infinite loop recalculation when the scrollbar is already floating (mobile, mac OSX) 24f205d (#242) thanks

⚙️ Features

simplebar-react

  • Now supports passing props to scrollable node 44867d7

simplebar

Thanks for the great contributions @andersk James Camilleri @ZerglingGo @jcamilleri13 @mikhailsidorov @HitoriSensei