-
-
Notifications
You must be signed in to change notification settings - Fork 570
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
non-automatic flush content is not persistent on resize #871
Comments
This is a real edge case that happens only when using |
So the problem was the inconsistent state of the DOM (two lines were in a single container with an index of the second one) and the internal state that had two separated lines. So when updating the first line, the index was not found and was ignored. |
jcubic
added a commit
that referenced
this issue
Jul 4, 2023
Fix problem with `echo(..., {newline: false, flush: false})` where two lines ended in the same container and the index came from the last line. When refreshing the first line was ignored becuase the index in DOM was missing. The fix was to reset the state after newline so both lines are in different containers
jcubic
added a commit
that referenced
this issue
Jul 4, 2023
Fix problem with `echo(..., {newline: false, flush: false})` where two lines ended in the same container and the index came from the last line. When refreshing the first line was ignored becuase the index in DOM was missing. The fix was to reset the state after newline so both lines were in different containers
Released in 2.37.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue summary
When you echo something without flush, then flush and resize the text is gone
Expected behavior
Text is not removed
Actual behavior
text is removed
Steps to reproduce
repro
Additional notes
Found by looking at old demos on CodePen
The text was updated successfully, but these errors were encountered: