Page MenuHomePhabricator

MultilineTextInputWidget doesn't grow when you enter a new line (VE template editor)
Closed, DuplicatePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  1. https://pl.wikipedia.org/wiki/Wikipedysta:Nux/test/VE/sekwencje?veaction=edit
  2. Add template "Przykład TemplateData".
  3. Add a content parameter (Treść content).
  4. Type in or paste some text with new lines (abc↳def↳ghi↳).

What happens?:
The field doesn't grow. It makes entering long text rather hard.

What should have happened instead?:
The field should grow.

The content field should be higher then others by default (like in the TemplateWizard).

Software version (skip for WMF-hosted wikis like Wikipedia): Wikipedia

Other information (browser name/version, screenshots, etc.):

Note that described behaviour seem to change when there are more fields. E.g. I add a line field and then change content filed and then something clicks and it works. When I then add a string field it also works fine. So seems like some weird bug. Also sometimes it helps when I do a backspace.

Maybe a problem with detecting new lines in Firefox on Windows which uses "\r\n" for new lines. Chrome doesn't seem to be affected.

Also note that the TemplateWizard (for the code editor) seems to be less affected. As I understand it uses a bit different configuration of fields for MultilineTextInputWidget, so at least 3 lines are shown by default. But growing to show all lines is also a problem.

Firefox Release 108.0.2, January 5, 2023
Windows 10

obraz.png (479×900 px, 44 KB)