Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Umbraco version 8.11.1
Summary does not expand when clicked.
I can fix it by calling initSm(); in the vendrcheckout.js but wondering if this this has been fixed in any subsequent versions or not.
I seem to recall this issue previously and am wondering if it's an issue with the simple state machine library not firing on breakpoint change. Are there any JS errors present in developer tools? And are you able to see if the breakpoint code ever runs correctly on breakpoint change?
No console errors
I just noticed in the vendrcheckout.js that the initCommon() was called but but not the initSm() so I just added that as the fix.
The call to that method shouldn't really be done manually. The point of the simple state machine library is that it responds to breakpoints and runs the relevant function call when a breakpoint is crossed, so the initSm method should ONLY be run when in a small breakpoint, and then the initLg should be run when you move to/start in the larger breakpoint.
Maybe upgrading the simple state machine library in the master layout file to a newer version might fix it. This it the library in question https://github.com/jonathan-fielding/SimpleStateManager there appears to be a bunch of newer versions.
That seem to do the trick.. I've upgraded to v4 and it's working fine now. Thanks
I'll raise an issue on the Vendr Checkout repo to say we need to upgrade it.
Glad you were able to get it working though
Ok thanks. I'll give that a try.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted