Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Twitter Bootstrap dropdown on ipad and android doesn't work even with the hack

I have a problem when I access my software on ipad and android. This is the html that doesn't work on ipad. I can't click on the sub-itens

<div class="btn-group">
    <button class="btn dropdown-toggle" data-toggle="dropdown">Export <span class="caret"></span></button>
    <ul class="dropdown-menu">
        <#if  print?exists>
            <li><a href="javascript:print('${print}');">Print in PDF</a></li>
        </#if>
        <#if  printList?exists>
            <li><a href="javascript:print('${printList}');">Print list in PDF</a></li>
        </#if>
        <li><a href="javascript:exportListAt('${targetList}', 2);">Export to Excel</a></li>
        <li><a href="javascript:exportListAt('${targetList}', 1);">Export to CVS</a></li>
        <li><a href="javascript:exportListAt('${targetList}', 3);">Export to XML</a></li>
    </ul>
</div>

I already hack this html with

jQuery(document).ready( function (){
            jQuery('.dropdown-toggle')
                .on('touchstart.dropdown', '.dropdown-menu', function (e) { e.stopPropagation(); })
                .on('touchstart.dropdown', '.dropdown-submenu', function (e) { e.preventDefault(); })
    })

This error also occur when I access the bootstrap site on ipad and android.

What can I do ?

like image 405
thiago.lenz Avatar asked Nov 07 '12 12:11

thiago.lenz


People also ask

What is the latest version of Twitter Bootstrap?

The most popular of the front end frameworks, Twitter Bootstrap, has come to its third version (v3.0.0). This Twitter Bootstrap Tutorial for beginners will get you started with Twitter Bootstrap 3. If you have already used Bootstrap before, this will introduce you with new features came with the version.

Do dropdown menu links not work on iOS devices?

Dropdown menu links do not work on IOS devices running 5.1.1. They work fine when using RWD Bookmarklet or responsive.is for testing, just not natively on IOS devices. Sorry, something went wrong. I'm having this issue too.

Why can’t I install the Twitter app on my iPhone?

If you have enough space available and you’re still having trouble installing the app: Cancel the download in the iTunes App Store, then restart the download. If restarting the download doesn’t work, try powering off your device and then restarting it. If restarting your device doesn’t work, try uninstalling the Twitter app from your device.

What devices does the Twitter for iOS app support?

Note: The Twitter for iOS app is available for devices running iPhone iOS 7.35.0, iPad iOS 7.3.0 and above. We no longer support older versions. To experience the most up-to-date Twitter for iOS experience, download the latest version in the store or visit twitter.com in your browser.


1 Answers

Recently, Bootstrap 2.2.2 came out and your issue is one of many that has been fixed.

Therefore, a good solution would be to update your Bootstrap version to the latest available.

See the changelog, or download the latest bootstrap directly

I also wrote a short blog post about this issue.

like image 175
Robin van Baalen Avatar answered Sep 28 '22 03:09

Robin van Baalen