Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Popover Bug: when popover inner button disabled. popover click action can still trigger #4148

Open
1 task done
0xbul1 opened this issue Jun 1, 2021 · 4 comments
Open
1 task done

Comments

@0xbul1
Copy link

0xbul1 commented Jun 1, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.1.4

Environment

vue 3.0

Reproduction link

https://stackblitz.com/edit/vue-ehr5gs?devtoolsheight=33&file=src/components/Test.vue

Steps to reproduce

Test link

https://stackblitz.com/edit/vue-ehr5gs?devtoolsheight=33&file=src/components/Test.vue

image link

https://z3.ax1x.com/2021/06/01/2n5Ryt.gif

What is expected?

its legal? i dont konw, maybe the design thinking is like this?

What is actually happening?

thats all

@fengpang
Copy link

fengpang commented Jul 6, 2021

you can use the visible prop and visible-change event to achieve. like this:
image
image

@0xbul1
Copy link
Author

0xbul1 commented Jul 13, 2021

@fengpang
thanks you reply, i'm so sry to reply you so late.

you idea, you solution is right. its useful for control one popover

bbut in my case

i use many popover, this popover status only by itself, not control by me.

if i control one visible status, its effect all popover visible.

for you i update my demo in here, maybe you can understand my trouble

thanks again.

@fengpang
Copy link

fengpang commented Jul 15, 2021

Indeed, a temporary solution can be achieved by maintaining multiple states.like this

@0xbul1
Copy link
Author

0xbul1 commented Jul 19, 2021

thanks

Indeed, a temporary solution can be achieved by maintaining multiple states.like this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants