somewebmedia / hc-offcanvas-nav

JavaScript library for creating toggled off-canvas multi-level navigations, allowing endless nesting of submenu elements, supporting swipe gestures, keyboard interactions and ARIA attributes.
https://somewebmedia.github.io/hc-offcanvas-nav/
MIT License
335 stars 82 forks source link

Can't add a search box to the menu #9

Closed ghost closed 6 years ago

ghost commented 6 years ago

I am trying to add a search box to the menu, however it does not show on the menu.

The code is completely removed by the plugin, how do i go about adding this?

This is the code i'm trying to add within the nav tag:

    <ul class="search">
        <li>
            <div class="input-group input-group-sm pt-1 w-75">
                <input type="text" class="form-control search-form-control" aria-label="Amount (to the nearest dollar)">
                <div class="input-group-append">
                    <span class="input-group-text search-icon">
                        <i class="fa fa-search" aria-hidden="true"></i>
                    </span>
                </div>
            </div>
        </li>
    </ul>
somewebmedia commented 6 years ago

It's a bug. I'll prepare a fix for that.

somewebmedia commented 6 years ago

@Asadlerpwcom new version is out, can you please check it and let me know if everything is working properly now. Thanks.

ghost commented 6 years ago

Works perfectly thanks!

image