mirror of
https://github.com/sissbruecker/linkding.git
synced 2025-08-07 18:58:30 +02:00
Disable autocapitalization for tag input form (#395)
* Disable autocapitalization for tag input form * Disable autocapitalize in tag auto complete * Fix test --------- Co-authored-by: Sascha Ißbrücker <sascha.issbruecker@gmail.com>
This commit is contained in:
@@ -119,7 +119,7 @@
|
|||||||
<div class="form-autocomplete-input form-input" class:is-focused={isFocus}>
|
<div class="form-autocomplete-input form-input" class:is-focused={isFocus}>
|
||||||
<!-- autocomplete real input box -->
|
<!-- autocomplete real input box -->
|
||||||
<input id="{id}" name="{name}" value="{value ||''}" placeholder=" "
|
<input id="{id}" name="{name}" value="{value ||''}" placeholder=" "
|
||||||
class="form-input" type="text" autocomplete="off"
|
class="form-input" type="text" autocomplete="off" autocapitalize="off"
|
||||||
on:input={handleInput} on:keydown={handleKeyDown}
|
on:input={handleInput} on:keydown={handleKeyDown}
|
||||||
on:focus={handleFocus} on:blur={handleBlur}>
|
on:focus={handleFocus} on:blur={handleBlur}>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="{{ form.tag_string.id_for_label }}" class="form-label">Tags</label>
|
<label for="{{ form.tag_string.id_for_label }}" class="form-label">Tags</label>
|
||||||
{{ form.tag_string|add_class:"form-input"|attr:"autocomplete:off" }}
|
{{ form.tag_string|add_class:"form-input"|attr:"autocomplete:off"|attr:"autocapitalize:off" }}
|
||||||
<div class="form-input-hint">
|
<div class="form-input-hint">
|
||||||
Enter any number of tags separated by space and <strong>without</strong> the hash (#). If a tag does not
|
Enter any number of tags separated by space and <strong>without</strong> the hash (#). If a tag does not
|
||||||
exist it will be
|
exist it will be
|
||||||
|
@@ -87,7 +87,7 @@ class BookmarkEditViewTestCase(TestCase, BookmarkFactoryMixin):
|
|||||||
tag_string = build_tag_string(bookmark.tag_names, ' ')
|
tag_string = build_tag_string(bookmark.tag_names, ' ')
|
||||||
self.assertInHTML(f'''
|
self.assertInHTML(f'''
|
||||||
<input type="text" name="tag_string" value="{tag_string}"
|
<input type="text" name="tag_string" value="{tag_string}"
|
||||||
autocomplete="off" class="form-input" id="id_tag_string">
|
autocomplete="off" autocapitalize="off" class="form-input" id="id_tag_string">
|
||||||
''', html)
|
''', html)
|
||||||
|
|
||||||
self.assertInHTML(f'''
|
self.assertInHTML(f'''
|
||||||
|
Reference in New Issue
Block a user