mirror of
				https://github.com/sissbruecker/linkding.git
				synced 2025-10-25 00:54:03 +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}> | ||||
|         <!-- autocomplete real input box --> | ||||
|         <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:focus={handleFocus} on:blur={handleBlur}> | ||||
|     </div> | ||||
|   | ||||
| @@ -21,7 +21,7 @@ | ||||
|   </div> | ||||
|   <div class="form-group"> | ||||
|     <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"> | ||||
|       Enter any number of tags separated by space and <strong>without</strong> the hash (#). If a tag does not | ||||
|       exist it will be | ||||
|   | ||||
| @@ -87,7 +87,7 @@ class BookmarkEditViewTestCase(TestCase, BookmarkFactoryMixin): | ||||
|         tag_string = build_tag_string(bookmark.tag_names, ' ') | ||||
|         self.assertInHTML(f''' | ||||
|             <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) | ||||
|  | ||||
|         self.assertInHTML(f''' | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Josh Dick
					Josh Dick