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

Adding e.preventDefault() to tap events

1 Answer 101 Views
Application
This is a migrated thread and some comments may be shown as answers.
Ron
Top achievements
Rank 1
Veteran
Ron asked on 08 Jul 2016, 02:09 PM

Hi,


We recently switched from using onclick events to using kendo tap event for our mobile app (following your suggestion in other post).

As we found out, tap events are propagating and result with unintended events. For example - when the user clicks a button in view1 which navigates to view2, clicking this button will lead to view 2 but may also cause triggering a button of view2 that was located at the same position of the button in view1. 

We also found out (following another suggestion you gave us in a different post) that using e.preventDefault()  is solving this problem.

Our app has dozens, if not hundreds, tap events. Is there a better way to add them e.preventDefault()  rather than go over all those places in the code and add it there?

1 Answer, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 12 Jul 2016, 07:56 AM
Hi,

we don't have any concrete suggestion for this case that does not involve the modification of our source code. Notice however that we don't provide support for modified versions of our source code. 

Regards,
Petyo
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Application
Asked by
Ron
Top achievements
Rank 1
Veteran
Answers by
Petyo
Telerik team
Share this question
or