Topic: Bootstrap navbar's search form and auto-complete not working
kellym80 pro answered 7 years ago
- put an html id on the nav or form or your own custom css class
- add some custom styles to override the position:absolute; css, it works with static or relative. Basically you want to target the form in your nav and then apply a position that is static or relative to your element.
- If you have set a height to the nav then this will just dropdown kind of like a dropdown would. If you haven't changed the mdb default nav height then the nav will expand as the drop down does.
Bartłomiej Malanowski staff pro premium commented 7 years ago
Thank you for your suggestion. We'll take a look into it. I hope we'll fix this issue in the nearest futureJakub Strebeyko staff answered 7 years ago
tannguyen pro commented 7 years ago
Hi Jakub, Thank you for reply. This would help me a lot if we have this feature in next release and support. Best Regards, Tan Nguyen.rachad malek answered 4 years ago
hello, I hope you are all well. I detere this post after 3 years to report the same problem relating to the autocompleter in the navbar. the results cannot be displayed in mdb-option. thank you very much.
Marcin Luczak staff commented 4 years ago
Hello Rachad,
Please provide a snippet showing your autocomplete component used within the navbar, so I can better understand your problem. Please also take a look at my snippet : https://mdbootstrap.com/snippets/jquery/marcin-luczak/2596355
Regards, Marcin
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No
Jakub Strebeyko staff commented 7 years ago
Hi there tannguyen, Thanks for reaching out! Could you please provide the DevTools console output along with your code for reference? Thanks. With Best Regards, Kubatannguyen pro commented 7 years ago
Hi Kuba, Thank you for your answer. You could try to reproduce with the following steps: - Paste the javascript's code of this page: https://mdbootstrap.com/components/bootstrap-autocomplete/ into the Devtools console's one of search form on this page: https://mdbootstrap.com/components/navbar/? - Please note that: there is no error in the console. The states' suggestion is well added right after search form, but it cannot be displayed. Thank youtannguyen pro commented 7 years ago
Hi Kuba, Thank you for your answer. You could try to reproduce this problem with the following steps: – Paste the javascript’s code of this page: https://mdbootstrap.com/components/bootstrap-autocomplete/ into the Devtools console’s one of search form on this page: https://mdbootstrap.com/components/navbar/? – Please note that: there is no error in the console. The states’ suggestion is well added right after search form, but it cannot be displayed. Thank you