ElemeFE / ElemeFE/element

[Feature Request] [tooltip] Make it possible to update popper

Open
#21,156 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Existing Component
Yes

### Component Name
Tooltip

### Description
Watch content value for change and in case of change, update popper.
or
Make **updatePopper()** internal function a public method of the component.

### Example use case
"Copy-to-clipboard" button with a tooltip content that encourages the user to click on it, like "**Press to copy to clipboard"**.
As soon as the button pressed, the tooltip that is still visible changes it's content to "**Copied**". Unfortunatelly right now, the whole position is off, as there's not way to call popper to update the positioning.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.