mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 12:27:41 +00:00
fix: disable search bar before loading
This fixes the new search placeholder not disappearing if you type before it finished loading, and maybe some other things.
This commit is contained in:
parent
df8cfb1273
commit
2f0abe63d4
@ -616,7 +616,7 @@
|
||||
<section class="docs">
|
||||
<div style="position: relative">
|
||||
<span id="searchPlaceholder"><kbd>S</kbd> to search, <kbd>?</kbd> for more options</span>
|
||||
<input type="search" class="search" id="search" autocomplete="off" spellcheck="false">
|
||||
<input type="search" class="search" id="search" autocomplete="off" spellcheck="false" disabled>
|
||||
</div>
|
||||
<p id="status">Loading...</p>
|
||||
<div id="sectNav" class="hidden"><ul id="listNav"></ul></div>
|
||||
|
||||
@ -51,6 +51,8 @@ var zigAnalysis;
|
||||
let domHelpModal = document.getElementById("helpModal");
|
||||
const domSearchPlaceholder = document.getElementById("searchPlaceholder");
|
||||
|
||||
domSearch.disabled = false;
|
||||
|
||||
let searchTimer = null;
|
||||
|
||||
let escapeHtmlReplacements = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user