简体   繁体   中英

aria-expanded="true" is not working on mobile devices

aria-expanded="true" is not working when user closes the dropdown in mobile devices. it it working fine in desktop browser pages.

desktop

<a class="notifLink" data-toggle="dropdown" aria-haspopup="true" id="notificationDropdown" aria-expanded="false" onclick="{!c.readNotifs}">      
                    <h4 class="linkColor">{!v.notifL}</h4>

                </a>

Mobile

<a class="dropdown-toggle notifLink" data-toggle="dropdown" aria-haspopup="true" id="notificationDropdown" aria-expanded="false" onclick="{!c.readNotifs}">
                        <span class="glyphicon glyphicon-bell"></span>
                        <div class="notificationItemsIcon"></div>
                    </a>

what am i missing?

Hey I just had this same issue. Are you working with Shopify and Shogun? For me the issue was shogun duplicated some assets in the code basically making the click cancel itself out. I had to remove the shogun section on my page and it worked great after that.

— A graphic designer with minimal coding experience

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM