Skip to content

Provide a failsafe if people use data-role="dialog" #3275

toddparker opened this Issue Dec 15, 2011 · 3 comments

4 participants


We're seeing some people try and use data-role="dialog" which isn't a valid role yet in the framework. You make a dialog by linking with data-rel="dialog" on a link but in non-ajax situations, people must be trying this instead.

The dialog role results in a blank page because it's not valid. As a first step, we can look for data-role="dialog"`` and change it todata-role="page"`` so at least the page renders.

In an upcoming update, we can try and truly support this role so the page renders as a dialog. I'll make a separate ticket for that.

@johnbender johnbender was assigned Dec 15, 2011

I think this issue can be closed as duplicate of Issue #3276 ?


If you're going to make an exception for people who are making this error, wouldn't it make sense to treat all invalid data-role types as "page"?


I don't think so. This is more of a temporary fix until the data role is properly supported. Since you can only have one data-role of page at a time in a view, it would be dangerous to assume that an unknown role is a page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.