简体   繁体   English

aria-expanded="true" 不适用于移动设备

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

aria-expanded="true" is not working when user closes the dropdown in mobile devices.当用户关闭移动设备中的下拉菜单时,aria-expanded="true" 不起作用。 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?您在与 Shopify 和 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 — 一位拥有最少编码经验的平面设计师

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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