question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

drop down search hideout

See original GitHub issue

hey! i make a drop down search in navigation bar ,based on materialize for wordpress :

<a href="#" data-activates="search-area" class="search-header dropdown-button">
<i class="material-icons">search</i>
</a> 
<div id="search-area" class="dropdown-content search-area">
<form method="get" id="searchform" action="<?php echo home_url(); ?>/">
 <div class="input-field">
<input class="search" type="text" name="s" id="s" value="<?php the_search_query(); ?>" placeholder="Search..." />
<label class="label-icon" for="search"><i class="search-ico material-icons">search</i></label>
</div>
</form>
</div>

and its works fine show search area and everything’s but the problem is when i click on input-type to type somthing drop down just fade out and i cant type anything.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
DanielRufcommented, Jan 27, 2018

Sorry but I am just one of many contributors and I invest my available free time.

0reactions
BanShee8commented, Jan 27, 2018

i just finde the problem and im gonna share it here:

You can manually add an event listener to the .dropdown-content element and prevent clicks from bubbling using e.preventDefault():

$('.dropdown-content').on('click', function(e) {
  e.stopPropagation();
});

its solve the problem thanks to stackoverflow from.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AM2R/Search & Rescue Hideout - StrategyWiki
Drop down either side of the rock, and go left to room H. Room H is another long corridor over lava. The enemies...
Read more >
Where to Find Quest and Hideout Loot Without The Flea Market
Hey everyone, welcome to the channel for another Escape From Tarkov video, this time with some tips on where you should looting in...
Read more >
Yiga Clan Hideout - The Legend of Zelda - IGN
The Yiga Clan Hideout is located north of Gerudo Tower and southeast of ... Take some of the Mighty Bananas nearby and head...
Read more >
Hideout - Path of Exile Wiki - Fandom
To flip an object, use F. To change the variation of a decoration, use the mousewheel or press Page Up/Page Down. To reclaim...
Read more >
Firewatch walkthrough: Day 78 - Polygon
Head north from your watchtower and drop down from the rocks, ... choice but to keep moving through the cave and hope to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found