HI,
thank you for sharing good component.
I think it is better to not have scrollbar when ease-in-out.
How about following code? (added overflow-y-hidden in className)
overflow-y-hidden
<div ref={contentSpace} style={{ maxHeight: `${height}` }} className="overflow-auto overflow-y-hidden transition-max-height duration-700 ease-in-out" > <div className="pb-10">{content}</div> </div>
Thanks!
Yes, that's a very good point! Thank you for the improvement suggestion. :)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
HI,
thank you for sharing good component.
I think it is better to not have scrollbar when ease-in-out.
How about following code? (added
overflow-y-hidden
in className)Thanks!
Yes, that's a very good point! Thank you for the improvement suggestion. :)