useBuyerJourneyIntercept Hook is getting triggered on hover of the submit

Trying to add custom checkbox as mandatory for checkout information page. To block the progress of submittion, used useBuyerJourneyIntercept Hook. But Hook is getting triggered on hover of “Continue” button. All other field validations are working on click of submit button. It seems quite different compared to other fields. Is this is the behaviour of the useBuyerJourneyIntercept Hook?.

Hello,

When using the use Buyer Journey Intercept Hook to make a custom checkbox mandatory on the checkout information page, you might notice the hook triggers on hover rather than on click unlike other field validations. This behavior is specific to the hook. To handle this ensure your checkbox is properly validated and consider adding an event listener to the “Continue” button to check the checkbox explicitly before allowing submission.

How to add an event listener to the “Continue” Button?. Because we don’t have access to any default fields on the checkout page.

2 Likes