-
-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Height resets to default value after first drag resize #501
Comments
I created PR #502 Please, check it out as you can because this bug is very annoying 😟 |
jaywcjlove
added a commit
that referenced
this issue
Apr 11, 2023
@dmitriyyan Upgrade |
@jaywcjlove Thanks a lot! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description: After the first height change with drag resize, if you try to change the height again, the height is reset to the default value specified in the props
Steps to reproduce:
Expected behavior:
Height should change relative to the previous change
Actual behavior:
Height resets to default value
Markdown.Editor.for.React.mp4
Bug reason:
The bug occurs because the
handleMouseDown
function in theDragBar
component references theprops.height
value. However, this value is outdated after the component's height has changed.Solution:
The text was updated successfully, but these errors were encountered: