DurandalJS modal windows not working with jQuery 3.x

88 views
Skip to first unread message

Ronald D. Willis

unread,
May 4, 2017, 6:59:10 PM5/4/17
to DurandalJS
My modal popups on my website http://www.rdwonline.com no longer load when using jQuery 3.x.  The very first modal will load as designed, but for all subsequent requests, only the background dimmer layer appears.

All I did was upgrade the jQuery framework in my test environment.  When I changed it back, I reloaded my application, and the modals work perfectly.

Until someone publishes a workaround, or the Durandal team releases a fix, I guess I am stuck on jQuery 2.x.

Nour Lababidi

unread,
Aug 27, 2018, 9:20:13 AM8/27/18
to DurandalJS
Same issue here. It took me a while to find out why the modal stopped working. I found jquery 3 is the reason. Honestly there was too many issues with durandaljs and I wish I didn't go with it for this project. There was too many issues conflicts with new libraries. durandaljs is no longer an option.

Ronald Willis

unread,
Aug 27, 2018, 9:25:16 AM8/27/18
to nba...@gmail.com, duran...@googlegroups.com
Someone actually posted a solution for this awhile back.

The problem is in the plugins/dialog.js file.  Look for a line where there is a call to .load()

Change it to this:

            loadables.on('load', function () {
                setDialogPosition(child, theDialog);
            });

Not sure why the DurandalJS codebase hasn't been updated to reflect this. It is literally a one-line change.

Once you update this, you should be able to use jQuery 3.x in its entirety with DurandalJS.

--
You received this message because you are subscribed to a topic in the Google Groups "DurandalJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/durandaljs/AMW10oMMyPg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to durandaljs+...@googlegroups.com.
Visit this group at https://groups.google.com/group/durandaljs.
To view this discussion on the web visit https://groups.google.com/d/msgid/durandaljs/6028a49f-54db-428c-8dee-b5d6fb274b88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Ronald D. Willis

Nour Lababidi

unread,
Aug 27, 2018, 9:38:24 AM8/27/18
to Ronald Willis, duran...@googlegroups.com
thank you very very much. I which if they release an updated on nuget version. Thank you soo much for taking the time 
--
Thank You,
Nour Lababidi
Reply all
Reply to author
Forward
0 new messages