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

Disabled button fires on swipe

1 Answer 60 Views
Button (Mobile)
This is a migrated thread and some comments may be shown as answers.
Zinc
Top achievements
Rank 1
Zinc asked on 23 Jul 2014, 12:11 AM
Hi,

I'm creating a mobile app and I've got a button in my navigation bar which I have disabled:

<div data-role="navbar">
        <a class="cublink" data-role="button" data-align="middle" data-transition="slide:left" href="#divSelect" disabled="disabled">Continue</a>
        <a class="cublink" data-role="button" data-align="right" data-transition="slide:left" href="#divHelp">Help</a>
</div>

As you can see, I have added the disabled attribute above to the "Continue" button.  The button looks disabled when running, and a single click on it does not take me to the designated page, which is good.  However, if I swipe the button, it does fire it.  Is there some code which ignores the disabled attribute when swiped and not clicked?

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 23 Jul 2014, 11:37 AM
Hi,

The correct way to disable a button is to use its enable configuration property. Please check the following example and let me know if you are able to reproduce the issue:

http://dojo.telerik.com/iCah

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Button (Mobile)
Asked by
Zinc
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or