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

ModalView close button click activates text area

2 Answers 71 Views
ModalView
This is a migrated thread and some comments may be shown as answers.
MattM
Top achievements
Rank 1
MattM asked on 13 Jul 2012, 04:08 PM
Hello,

If you have a modalView that opens over a text area, clicking the 'close' button (using a JS method via data-click) will open up the iPhone keyboard after the modalView has closed.

This seems to be because the touch event seems to register 'through' the button so it registers in the element behind it. Perhaps the touchup is registered on the text area itself?

2 Answers, 1 is accepted

Sort by
0
Accepted
Kamen Bundev
Telerik team
answered on 15 Jul 2012, 11:24 AM
Hello Matt,

To prevent the ghost click, try manually preventing the touchstart on the button, like this (but add this code after your mobile application init):
$(document.body).on("touchstart", "[data-role*=button]", false);

A fix will be present in the next internal build and the service pack.

Greetings,
Kamen Bundev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
MattM
Top achievements
Rank 1
answered on 16 Jul 2012, 07:32 AM
Thank you, that works perfectly!
Tags
ModalView
Asked by
MattM
Top achievements
Rank 1
Answers by
Kamen Bundev
Telerik team
MattM
Top achievements
Rank 1
Share this question
or