Skip to content

LongTextInput is not auto expandable textarea #1956

@atomxsk8

Description

@atomxsk8

Please do not submit support requests or "How to" questions here. For that, go to StackOverflow.

What you were expecting:
<LongTextInput> display correct

What happened instead:
if <LongTextInput> in <TabbedForm> have data, it not auto expandable textarea

screen shot 2561-06-26 at 17 01 38 copy

if <LongTextInput> in <TabbedForm> no data,

screen shot 2561-06-26 at 17 06 36 copy

Steps to reproduce:

  1. git clone https://github.com/marmelab/react-admin.git && cd react-admin
  2. make install && make run-demo
  3. Login demo/demo
  4. Go to Customers menu and click edit some customer
  5. Go to tab Address

Related code:

<FormTab label="resources.customers.tabs.address">
                <LongTextInput
                    source="address"
                    formClassName={classes.address}
                />
                <TextInput source="zipcode" formClassName={classes.zipcode} />
                <TextInput source="city" formClassName={classes.city} />
</FormTab>

Other information:

Environment

  • React-admin version: 2.0.3
  • Last version that did not exhibit the issue (if applicable): v2.0.0-RC4
  • React version: 16.3.2
  • Browser: Chrome Version 67.0.3396.87 (Official Build) (64-bit)
  • Stack trace (in case of a JS error):

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions