Skip to content

Commit 28d04f0

Browse files
committed
Set animation duration to immediate
Default animation duration was 300ms. It controls how long turbo-control will wait before restoring default confirm modal content (empty template). Due to that there could be a condition if you click fast enough when requesting a different confirm dialog, e.g. in products table clicking "Delete", closing modal and then clicking "Deactivate", then modal contents would be overwritten with previous modal contents. Since we don't use any kind of animation for modals we can put 0 duration to mitigate that bug.
1 parent 151273c commit 28d04f0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

admin/app/javascript/solidus_admin/rolemodel/turbo-confirm.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import TC from "@rolemodel/turbo-confirm"
22

33
TC.start({
4+
animationDuration: 0,
45
messageSlotSelector: ".modal-title",
56
contentSlots: {
67
body: {

0 commit comments

Comments
 (0)