ElemeFE / element-react

Element UI
https://elemefe.github.io/element-react/index
MIT License
2.83k stars 443 forks source link

Tooltip - props: manual and visible are ignored #995

Open pedroposada opened 5 years ago

pedroposada commented 5 years ago

Description

For the Tooltip component, the props:

are ignored, they make no effect in the behaviour of the Tooltip

Reproduce Steps

  1. Declare a Tooltip

    <Tooltip
    content={'My Contents'}
    manual={true}
    visible={true}
    >
    <div>
    SOME OTHER CONTENT
    </div>
    </Tooltip>
  2. Check if Tooltip is visible

Error Trace

There are no errors in the console

Solution

pedroposada commented 5 years ago

one way to work around this issue , is to use disabled prop to hide/show tooltip based on parent's onMouseOver callback