Material-ui: Popover blurs focusing TextField.

Created on 26 Apr 2019  路  4Comments  路  Source: mui-org/material-ui


I two main Components in this situation:

  1. TextField for inputting
  2. Popover manual for showing inputting tips.
  3. When users are texting something, they may need to look up some tips, they could hover to a tip zone to trigger the popover manual.
  4. Unfortunately, the popover blurs the TextFiled, users have to relocate TextFiled cursor location.

  • [x] This is not a v0.x issue.
  • [x] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior 馃


The Popover has no effects on other components.

Current Behavior 馃槸


The Popover blurs TextField.

Steps to Reproduce 馃暪


Link: https://codesandbox.io/s/1omr9x0np7

  1. Text something in TextField
  2. Hover on Popover trigger
  3. TextField lose focus

Context 馃敠

Your Environment 馃寧

| Tech | Version |
|--------------|---------|
| Material-UI | v4.0.0-alpha.7 |
| React | v16.8 |
| Browser | Version 73.0.3683.86 (Official Build) (64-bit) |
| TypeScript | 3.4.3 |
| etc. | |

Popover discussion

All 4 comments

Things to know when using the Popover component:
The component is built on top of the Modal component.
The scroll and click away are blocked unlike with the Popper component.

-- https://material-ui.com/utils/popover/

Your codesandbox doesn't have a textfield so it's hard to replicate. I think you should rather use a Tooltip or Popper for your use case.

@eps1lon Sorry, I updated Reproduction link.

@eps1lon Sorry, I updated Reproduction link.

Yeah as I said: a Popper or Tooltip is more appropriate. A Popover is intended to block the background.

Thanks, Popper is the correct choice

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kybarg picture kybarg  路  164Comments

sjstebbins picture sjstebbins  路  71Comments

chadobado picture chadobado  路  119Comments

Bessonov picture Bessonov  路  93Comments

garygrubb picture garygrubb  路  57Comments