Skip to content

Filter changes the focus of TextInput after few words and does not allow to enter long words #3149

Description

@arjunk

Focus changes in middle of typing when filtering by text.

What you were expecting:
Filter should allow user to input full text and should not change the focus of the textbox.

What happened instead:
Everytime I type a text for filtering the focus of Text-box changes after entering some characters.

Steps to reproduce:

Create a Filter with TextInput and use it in List

import { Filter, ReferenceInput, SelectInput, TextInput, List } from 'react-admin';
const PostFilter = (props) => (
    <Filter {...props}>
        <TextInput label="Search" source="q" resettable alwaysOn />
    </Filter>
);

export const PostList = (props) => (
    <List filters={<PostFilter />} {...props}>
        // ...
    </List>
);

In above code react-admin doesn't allow you to type a long text and changes focus of the text box after entering some characters.

Environment
React-admin version: 2.8.2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions