mirror of
https://git.netzspielplatz.de/docker-multiarch/openwrt-firmware-selector.git
synced 2025-11-08 23:49:31 +00:00
fixes toggle search result and remove gfont dependency
Previously, the search resutls were displayed only when the search input was in focus and were hidden when it went out of focus. In order to make the options in the list work, the focus out event was delayed by 300ms. Now, to get rid of the delay, an onClick event is added to the outer- most container of the component which checks if the clicked element (target of the event) is an descendant of the 'search-container' class housing the search input. If it is an descendant and the search query is not empty, then the result list is displayed otherwise it is hidden. Signed-off-by: Sudhanshu Gautam <me@sudhanshug.com>
This commit is contained in:
parent
3f7007f259
commit
66b4d9a86f
2 changed files with 35 additions and 26 deletions
|
|
@ -11,7 +11,6 @@
|
|||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
||||
-->
|
||||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" />
|
||||
<!--
|
||||
Notice the use of %PUBLIC_URL% in the tags above.
|
||||
It will be replaced with the URL of the `public` folder during the build.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue