MWDelaney / sage-bootstrap4-navwalker

MIT License
73 stars 34 forks source link

Submenu Dropdown getting random inline styles, distorts mobile #22

Closed da-kicks-87 closed 3 years ago

da-kicks-87 commented 3 years ago

I have inspected the sub menu element <ul> and noticed inline styles are applied to it.

style="position: absolute; will-change: transform; top: 0px; left: 0px; transform: translate3d(5px, 40px, 0px);

On mobile view view when toggling the submenu it overlaps the menu items underneath. BS4 should toggle the sub menu and push ther other menu items below. This faulty behavior is happening because of the inline styles being applied.

Anyone have any ideas why this is happening?

Would be it simpler to use the default WP Walker and CSS and JS to create a mobile nav menu? I feel like doing that... One of the reasons why I am using this BS4 Walker is to get the mobile responsive menu and it can't even do that.