ModalView close button click activates text area

3 posts, 1 answers
  1. MattM
    MattM avatar
    5 posts
    Member since:
    Jul 2012

    Posted 13 Jul 2012 Link to this post

    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. Answer
    Kamen Bundev
    Admin
    Kamen Bundev avatar
    1532 posts

    Posted 15 Jul 2012 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. MattM
    MattM avatar
    5 posts
    Member since:
    Jul 2012

    Posted 16 Jul 2012 Link to this post

    Thank you, that works perfectly!
Back to Top