Textarea's scrollbar doesn't appear on selecting template in Preview tab
Summary
I accidentally (as usual) found a bug in textareas.
If a template is chosen while being in Preview
tab, a textarea's scrollbar doesn't appear.
Steps to reproduce
- Open a new issue page.
- Clear the textarea (it is not necessary, just to see the bug clearer).
- Switch to the
Preview
tab. - Select a template.
- Switch to the
Write
tab back. - A selected template is in there, but there is no scrollbar and the cursor is at the end of template.
Entering to the fullscreen mode and getting back does make the scrollbar be visible.
What is the current bug behavior?
- No scrollbar.
- Cursor is at the end of template.
What is the expected correct behavior?
- Scrollbar should be visible.
- Cursor should be at the beginning of the template.
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
GitLab Enterprise Edition 9.0.2-ee 3ed6218