Skip to content

Commit

Permalink
Update overlay.phtml (#160)
Browse files Browse the repository at this point in the history
Remove the pointer-events-none class from the overlay. This class disables pointer events, allowing interaction with elements behind the overlay, which defeats its purpose, especially for an overlay containing a spinner.

I encountered this issue while working on the Hyvä checkout with Stripe. If the user double-clicked 'Proceed to review & payments,' the Google Wallet payment option would sometimes appear twice, as each click caused digital wallet methods (like Google and Apple Pay) to initialize multiple times.
  • Loading branch information
rossmc authored Oct 15, 2024
1 parent c3839fa commit 54dd735
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/view/frontend/templates/html/loader/overlay.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ $magewireScripts = $block->getViewModel();
top-0 left-0 right-0 bottom-0
w-full h-screen
overflow-hidden
pointer-events-none
bg-white bg-opacity-90"
<?php /* AlpineJS v2.x */ ?>
x-spread="overlay()"
Expand Down

0 comments on commit 54dd735

Please sign in to comment.