ElemeFE / element

A Vue.js 2.0 UI Toolkit for Web
https://element.eleme.io/
MIT License
54.1k stars 14.64k forks source link

[Bug Report] Popover hide while trigger is `click`(not mouseup) #19481

Open serfend opened 4 years ago

serfend commented 4 years ago

Element UI version

2.13.2

OS/Browsers version

win10x86 chrome 80

Vue version

2.6.2

Reproduction Link

http://www.serfend.top/#/application/newApply?via=github.com

Steps to reproduce

  1. select username input in login form (at the right top of the browser)
  2. input arbitrarily letters
  3. move mouse from right to left to select the username``input till out of the Popover
  4. release the mouse

What is Expected?

click-trigger should not effect on Popover

What is actually happening?

click-trigger should effect on Popover

serfend commented 4 years ago

i find that while i set trigger to ref,it wouldnt sync with i set from manual to hover

 <el-popover
        v-model="userCardShow"
        placement="bottom-end"
        :trigger="!hasLogin&&loginFormHasShow?'manual':'hover'"
        @show="userCardShowing(true)"
        @hide="userCardShowing(false)"
      />

the following doesnt hit the expected

 :trigger="!hasLogin&&loginFormHasShow?'manual':'hover'"
stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.