-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Carriage return with space are inserted instead of space for inline text editing in Google Crome v57 #3798
Comments
is a chrome bug. would be nice to contribute to bug confirmation there after trying the fiddle i left. Also there is a workaround in a branch called |
@asturur which commit in |
i committed lot of stuff all togheter. |
Can you point me to the file where I can view the code? |
Changing width and height of hidden textarea from 0 to1 pix fixed the issue. Thanks, @asturur. |
Thanks. Are you saying that the style |
you have also to use whitespace nowrap. changing width and height will just move the problem to more space pressed |
Great thanks that fixed it for now. Hope Chrome fixes it soon as well |
can you please specify your code I am getting th same issue ut i dont know how t solve it |
this fix was inserted in the main library, you should not need it. |
This bug can be reproduced only with Google Chrome version 57.
I did some investigation and looks like this bug appears for any fabricjs version starting from 1.6.0.
Version
fabricjs >= 1.6.0
Google Chrome 57
Test Case
works ok: https://jsfiddle.net/28sdvzoz/ with fabric 1.5.0
bug reproduces: https://jsfiddle.net/ttbsfgxt/ with fabric 1.6.0 and higher
Steps to reproduce
Expected Behavior
Space is inserted and text becomes
"Som e text"
Actual Behavior
Carriege return with space are inserted and text becomes
"Som
e text"
The text was updated successfully, but these errors were encountered: