最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Material-ui tooltip not working properly - Stack Overflow

programmeradmin1浏览0评论

I'm trying to use the material-ui tooltip. I want the tooltip to be displayed at the top. Even after setting placement="top" The demo can be found here

What am I doing wrong in here?

I'm trying to use the material-ui tooltip. I want the tooltip to be displayed at the top. Even after setting placement="top" The demo can be found here

What am I doing wrong in here?

Share Improve this question asked Dec 26, 2017 at 8:42 RangarajanRangarajan 871 gold badge1 silver badge8 bronze badges 1
  • For touch event for mobile, see - stackoverflow./a/70270694/984471 – Manohar Reddy Poreddy Commented Dec 8, 2021 at 6:13
Add a ment  | 

2 Answers 2

Reset to default 4

Because page has not enough space to show tooltip on top position Just add simple padding then try it again.

<div style={{padding: '50px'}}>
  <Tooltip placement="top" title="Chart Type">
    <IconButton >
      <ShowChart />
    </IconButton>
  </Tooltip>
  </div>

If you use a form wrapper, the outlined variant contains a "pointer-event: none" property that would prevent the popover from getting any events.

发布评论

评论列表(0)

  1. 暂无评论