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

After navigating button event is automatically fired

1 Answer 51 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
ruchin
Top achievements
Rank 1
ruchin asked on 21 Jul 2015, 07:44 AM
Hi

I have button1 on view1(parent view)and button2 on view2(child view).Onclick of button1 the app navigates to the child view.My problem is after navigating to child view it automatically fires the button2 event.It is important to note that button1 and button2 are at the same position although on two different views.

This problem is persistent on views having buttons or links at same position.

How can I handle this issue??

Thanks.
Ruchin Dayal

1 Answer, 1 is accepted

Sort by
0
Martin Yankov
Telerik team
answered on 23 Jul 2015, 10:37 AM
Hello Ruchin,

Are you using the Kendo UI Mobile framework? If yes, this should not normally happen. Can you please provide a sample app or code, so that I can take a look?

Other than that, have you tried setting these two lines of code at the end of the click/tap event handler:
e.stopPropagation();
e.preventDefault();

This should stop such unwanted behavior.

Let me know if this helps.

Regards,
Martin Yankov
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
General Discussion
Asked by
ruchin
Top achievements
Rank 1
Answers by
Martin Yankov
Telerik team
Share this question
or