Problem/Motivation

Can't submit Webform entities embedded into modal.

Steps to reproduce

Add Webform entity reference field to modal. Embed a webform. View modal and fill out webform. Submit...nothing happens. View Console.

Uncaught InternalError: too much recursion
    be https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js:1
    Te https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js:1
    i https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js:1
    t[0] https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js:1
    A/V[t]< https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js:1
    A https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js:1
    format https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js:1
    setModalCookie http://powertodecide.localhost/modules/contrib/ik_modals/js/modals.js?r97e3t:357
    handleModalInternals http://powertodecide.localhost/modules/contrib/ik_modals/js/modals.js?r97e3t:401
    jQuery 2
moment.min.js:1:7171

Proposed resolution

Patch attached.

Remaining tasks

Review and consider other solutions.

CommentFileSizeAuthor
ik_modals_fix-recursion-4.x.patch874 bytesikphilip

Comments

ikphilip created an issue. See original summary.

rosemaryreilman’s picture

Assigned: Unassigned » rosemaryreilman
Status: Active » Fixed

Released 4.0.2 with this patch. Thanks!

rosemaryreilman’s picture

Status: Fixed » Closed (fixed)
rosemaryreilman’s picture

Status: Closed (fixed) » Fixed

Closed due to inactivity and no updates

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.