Skip to content

Dropdown: Why Filter Template was deprecated? #7116

Open
@franmc01

Description

@franmc01

Describe the bug

Before I used that because I needed to customize the search field with key filter and do some validations and implementation with the options that it returned to me like the reset and filter function? How could I do something like that now?

          filterTemplate={() => <InputText
              className="custom-input"
              hasIcon
              iconName="iu iu-icon-search"
              iconPosition="left"
              keyfilter={/^[a-zA-Z0-9ÁÉÍÓÚáéíóúñÑ\s]+$/}
              maxLength={40}
              parentClassName="dropdown-last-transactions-input-search"
              // placeholder={placeholder}
              // ref={filterInputRef}
              // value={filterValue}
              // onChange={(e) => myFilterFunction(e, filterOptions, 3)}
            />
          }
          showClear
        />

Reproducer

No response

System Information

X

Steps to reproduce the behavior

No response

Expected behavior

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionIssue contains a question about the use of PrimeReact components or the products it supports

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions