Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with focus on Textfield with verticalContent #12356

Open
gangreg opened this issue Jul 10, 2024 · 0 comments
Open

Issue with focus on Textfield with verticalContent #12356

gangreg opened this issue Jul 10, 2024 · 0 comments
Labels
Bug Something is broken and not working as intended in the system. untriaged

Comments

@gangreg
Copy link

gangreg commented Jul 10, 2024

Summary

When a TextField has vertical content, the focus is kept after clicking away from the TextField when going from no content in the vertical content to some content or from having content to no content. (Might be easier to understand what I mean after watching the example video).

Expected behavior

blur should happen whenever we click off the TextField even if there is verticalContent

Actual behavior

Wrap animated gifs/videos in a details tag:

Focus stays when clicking off the field when verticalContent is set on TextField
with-vertical-content.mp4
Focus works properly when there is no vertical content (not AutoComplete related)
without-vertical-content.mp4

Steps to reproduce

Link to sandbox

  1. Type a word in the TextField
  2. Press Enter
  3. Clicking around does not blur the field
  4. Now click into the field and write a second word
  5. Press Enter
  6. Now clicking off the field blurs it

Are you using React components?

Yes

Polaris version number

13.4.0

Browser

Chrome: 126.0.6478.127

Device

macOS 14.5

@gangreg gangreg added Bug Something is broken and not working as intended in the system. untriaged labels Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken and not working as intended in the system. untriaged
1 participant