disperse
disperse

Reputation: 1296

AngularUI and Multiple jQuery UI Dialogs

I'm using the jQuery Passthrough module for AngularUI to separate content into dialogs on my page. The first dialog works great, the second dialog fails with a "TypeError: Cannot read property '1' of null."

Here's the jsfiddle:

http://jsfiddle.net/3wpKa/3/

Upvotes: 1

Views: 1575

Answers (1)

disperse
disperse

Reputation: 1296

With help from the AngularUI devs (thanks folks!), I was able to work-around the issue by wrapping each dialog in its own div: jsfiddle.net/3wpKa/12

<div>
    <div ui-jq="dialog" ui-options="{title: 'Dialog 1', autoOpen: open}">Dialog 1</div>
</div>

Upvotes: 2

Related Questions