Skip to content

Issue with TextField Component #4256

@fuvidu-flagship

Description

@fuvidu-flagship

Issue summary

With the latest version of @shopify/polaris (6.5.0), when a suffix is added to a TextField, it is impossible to click the suffix component. The TextField focus is overshadowing the suffix component.

Expected behavior

Actions on the TextField's suffix component should work.

Actual behavior

Actions on the TextField's suffix component doesn't work.

Steps to reproduce the problem

  1. Install @shopify/polaris (6.5.0)
  2. Create a TextField component with a suffix component, and try to click on the suffix component.

Reduced test case

The best way to get your bug fixed is to provide a reduced test case. This CodeSandbox template is a great starting point.

https://codesandbox.io/s/shopify-polaris-react-typescript-playground-forked-79rlg?file=/src/index.tsx

In the link above, try to change the dropdown, and you will see what I am talking about.

Specifications

  • Are you using the React components? (Y/N): Y
  • Polaris version number: 6.5.0
  • Browser: Chrome
  • Device: Laptop
  • Operating System: Ubuntu

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is broken and not working as intended in the system.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions