element-plus [Component] [tooltip, button] 当el-button有disabled属性的时候,el-tooltip不展示

wtlkbnrh  于 4个月前  发布在  其他
关注(0)|答案(8)|浏览(45)

Bug Type: Component

Environment

  • Vue Version: 3.4.35
  • Element Plus Version: 2.7.8
  • Browser / OS: 5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
  • Build Tool: Vite

Reproduction

  • el-tooltip
  • el-button

Element Plus Playground

Steps to reproduce

eltooltip默认插槽放入elbutton并且设置button属性为disabled,然后disabled的button不会展示tooltip的content

What is Expected?

disabled的button展示非disabled tooltip的content

What is actually happening?

disabled的button不会展示非disabled tooltip的content

Additional comments

(empty)

mbyulnm0

mbyulnm01#

tooltip does not determine what the specific content of the default slot is. If you want to disable tooltip under certain conditions, you should set the disabled property for it.

xesrikrc

xesrikrc2#

tooltip does not determine what the specific content of the default slot is. If you want to disable tooltip under certain conditions, you should set the disabled property for it.

I mean, when I set the disabled for el-button, but the el-tooltip with no disabled property and do not show its content.

I wish when my mouse hover the disabled el-button and show the eltooltip's content 'the reason why the elbutton was disabled' but nothing show :(

tyu7yeag

tyu7yeag3#

It looks normal to me.

vptzau2j

vptzau2j4#

It looks normal to me.

whats your browser version mine is↓
Browser / OS: 5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36

xyhw6mcr

xyhw6mcr5#

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36

z9zf31ra

z9zf31ra6#

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36

gj3fmq9x

gj3fmq9x7#

It seems to be related to the browser version. Can it be solved if the version is updated?

wyyhbhjk

wyyhbhjk8#

It seems to be related to the browser version. Can it be solved if the version is updated?

yes it is normal in Chrome/127.0.6533.89

相关问题