-
Notifications
You must be signed in to change notification settings - Fork 102
fix: #111 #126
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
fix: #111 #126
Conversation
I believe this should fix vue-final#111 but I did not test it yet. Just an idea! Feel free to close : )
|
I tested via the example vite app and confirm the fix works. |
|
Hi @mesqueeb, Change mousedown to click event will break the two unit test cases (see report):
To fix this two errors, we can modify in VueFinalModal.spec.js to But I think the behavior of |
|
I agree. We should also test for mobile. |
|
@hunterliu1003 I think though, if we test on mobile, and it works as expected, I don't see any reason why you would still prefer
I don't think so? 🤔 Perhaps the Do you have any examples or further clarification on how you think the behaviour might be different? |
Using |
|
@hunterliu1003 my last commit works with your requirement and mine. Please see screencast here: Also added touch events, but this is something I have not yet tested. |
|
Sorry the screencast is not showing my clicks for whatever reason, so it's hard to see what I mean. 😅 |
|
@mesqueeb Thank you for fixing the issue quickliy. I noticed that you using the I made some refactoring that was base on your idea but without using the stop event modifier and fixed the unit tests also in PR #129. |
|
I create another PR #129 for this |
fixes #111
I believe this should fix #111
edit: tested