-
Notifications
You must be signed in to change notification settings - Fork 367
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
after clicking Back and Cancel button and re-opening modal the modal show initial drag-drop / browse state box instead of image preview step #246
Comments
my method: <my-upload <script setup lang="ts"> import {ref} from "vue" const key = ref(1); const cropUploadSuccess = function () { //force recreate 设置组件的key值强制重建组件 key.value = new Date().getTime(); } </script> |
@seakingii Thank you for replying. this solution not working for me. Are you trying to re-rendering the here is my code .
|
I faced same problem.
Force component to be destroy by adding v-if. I think state should be reset internally or some kind of clear() method to reset component's state. I saw method reset(), maybe we can do something like |
I have the same problem. And here is my SOLUTION: replace line:
with
hope this help. |
@minhnhut Thank you for replying but your solution not working for me. instead it it shows the the dragging box the first time I try to edit image after I set one. |
@rizuwan86 Thank you for replying. I tried importing
|
Hello @dai-siki ! I would like to thank you for creating wonderful library which is simple and easy to implement.
I am having a issue here when
4.now if I click button that opens the modal.. the modal opens showing drag/drop area (which I believe should shows the preview state - 2nd step)
how do we always show modal with preview state of the existing image when there is already existing image.
thank you.
The text was updated successfully, but these errors were encountered: