element-plus [Component] [tooltip] el-tooltip, When the slot is el-input, it cannot be triggered by trigger:foucs.

oyjwcjzk  于 6个月前  发布在  其他
关注(0)|答案(2)|浏览(66)

Bug Type: Component

Environment

  • Vue Version: 3.4.21
  • Element Plus Version: 2.6.0
  • Browser / OS: Firefox win10
  • Build Tool: Vite

Reproduction

  • el-tooltip

Element Plus Playground

Steps to reproduce

What is Expected?

Display tooltip content correctly.

What is actually happening?

Tooltip will not be triggered

Additional comments

(empty)

b09cbbtk

b09cbbtk1#

User layer temporary solution

https://element-plus.run/#eyJzcmMvQXBwLnZ1ZSI6IjxzY3JpcHQgc2V0dXAgbGFuZz1cInRzXCI+XG5pbXBvcnQgeyByZWYgfSBmcm9tICd2dWUnXG5cbmNvbnN0IHZpc2libGUgPSByZWYoZmFsc2UpXG5cbmZ1bmN0aW9uIGZvY3VzKGU6IEZvY3VzRXZlbnQpe1xuICBjb25zb2xlLmxvZyhlKVxuICBjb25zb2xlLmxvZyhlLmlzVHJ1c3RlZClcbiAgdmlzaWJsZS52YWx1ZSA9IHRydWVcbn1cblxuPC9zY3JpcHQ+XG5cbjx0ZW1wbGF0ZT5cbiAgPGVsLWlucHV0IHN0eWxlPVwid2lkdGg6IDI0MHB4XCIgcGxhY2Vob2xkZXI9XCJQbGVhc2UgaW5wdXRcIiAvPiB7e3Zpc2libGV9fVxuICA8ZWwtdG9vbHRpcCB2LW1vZGVsOnZpc2libGU9XCJ2aXNpYmxlXCIgcGxhY2VtZW50PVwidG9wXCIgY29udGVudD1cImFzZGFcIiB0cmlnZ2VyPVwiZm9jdXNcIj4gXG4gICAgICA8ZWwtaW5wdXQgQGZvY3VzPVwiZm9jdXNcIiBzdHlsZT1cIndpZHRoOiAyNDBweFwiIHBsYWNlaG9sZGVyPVwi6I635b6X54Sm54K55ZCO5peg5rOV6Kem5Y+RdG9vbHRpcFwiIC8+IFxuICA8L2VsLXRvb2x0aXA+XG5cbiAgIDxlbC10b29sdGlwIHBsYWNlbWVudD1cInRvcFw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b21waWxlck9wdGlvbnNcIjoge1xuICAgIFwidGFyZ2V0XCI6IDMuM1xuICB9XG59XG4iLCJfbyI6e319

Thanks, I look forward to fixing it in the next version.

相关问题