Skip to content
Discussion options

You must be logged in to vote

Hi @chasingtheflow — thanks for the detailed repro, this made it easy to track down.

This is a regression introduced in the SPMenu widget-parameter serialization logic , shipped in 4.10.0. We will fix this in the next patch release

Workaround until the fix ships:

Pass widgetParameters as a pre-serialized JSON string instead of an object literal:

SPMenu({
    $id: Now.ID['my-menu'],
    title: 'My Menu',
    widget: '...',
    widgetParameters: JSON.stringify({
        enable_cart: { value: true, displayValue: 'true' },
        enable_requests: { value: true, displayValue: 'true' },
        enable_tasks: { value: true, displayValue: 'true' },
    }),
})

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bryce-godfrey
Comment options

Answer selected by bryce-godfrey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants