-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
fix(text-field): unable to undo/redo in autosized text field on firefox #19238
fix(text-field): unable to undo/redo in autosized text field on firefox #19238
Conversation
When we're measuring the height of an autosized textarea, we apply a class that has `overflow: hidden`. The `overflow` declaration seems to hit a bug on Firefox that doesn't allow users to undo/redo what they've typed. These changes add a specific workaround for Firefox. Fixes angular#16629.
// because the measurements there don't seem to be affected by the `height: 0`, whereas on other | ||
// browsers they are, e.g. Chrome detects longer text and IE does't resize back to normal. | ||
// Identical issue report: https://bugzilla.mozilla.org/show_bug.cgi?id=448784 | ||
textarea.cdk-textarea-autosize-measuring-firefox { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think overflow:hidden
was there because it prevented scrollbars from messing up the calculation. Have you confirmed if this is a problem on firefox now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seemed to behave correctly when I was testing it out in the dev app. I was trying both the one that's on a plain textarea
, as well as the one in the form field.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
When we're measuring the height of an autosized textarea, we apply a class that has
overflow: hidden
. Theoverflow
declaration seems to hit a bug on Firefox that doesn't allow users to undo/redo what they've typed. These changes add a specific workaround for Firefox.Fixes #16629.