Do not set set value when query wasn't provided
This commit is contained in:
1 parent
25f5af466a
commit
ed91a2bc2c
1 file changed
+1
-1
@@ -29,7 +29,7 @@
|
||||
<label for="query">
|
||||
<span class="no-text-transform">Search for:</span>
|
||||
</label>
|
||||
<input name="query" type="text" placeholder="A key or title containing this text" value="{{ query }}" />
|
||||
<input name="query" type="text" placeholder="A key or title containing this text"{% if query %} value="{{ query }}"{% endif %} />
|
||||
</div>
|
||||
<div class="col m2" style="height: 100%; margin-top: 4%;">
|
||||
<input value="Go" type="submit" />
|
||||
|
||||
Reference in new issue
Block a user