This is a migrated thread and some comments may be shown as answers.

Using data-modal="false" not working as expected?

2 Answers 57 Views
ModalView
This is a migrated thread and some comments may be shown as answers.
Bastien
Top achievements
Rank 1
Bastien asked on 17 Jan 2013, 10:47 AM
Hi all,

When I put data-modal="false" on my modalview, clicking on the screen is closing the modalview, but even if I click inside the modalview it's closing it.

I was expecting that the modalview would close only if the user is clicking outside of it.

I have the following HTML
<div id="modalview-post-details" data-role="modalview" style="width: 100%; height: 70%;" data-modal="false">
</div>

As the height of the modalview is set to 70%, there's enough space to click outside of it to close it.

Is it a bug or is it working like this? And if it's working like this, how can I close the modalview only when the user clicks outside the modalview?

Thanks for your help!
Bastien

2 Answers, 1 is accepted

Sort by
0
Bastien
Top achievements
Rank 1
answered on 21 Jan 2013, 08:14 AM
Any idea?
0
Iliana Dyankova
Telerik team
answered on 21 Jan 2013, 08:29 AM
Hi Bastien,

I was able to reproduce the problem and can confirm this is a bug. We will address the issue as soon as possible. Please accept my apologies for the inconvenience caused.

As a small sign of our appreciation for bringing this to our attention I updated your points.

Regards,

Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
ModalView
Asked by
Bastien
Top achievements
Rank 1
Answers by
Bastien
Top achievements
Rank 1
Iliana Dyankova
Telerik team
Share this question
or