Skip to content

Commit 934de5c

Browse files
JaZosmeijer
authored andcommitted
feat: add name to search input (#436)
This helps browsers and password managers to understand the field and will hide autofill-actions. Example of 1Password context button here (without fix): <img width="1217" height="470" alt="afbeelding" src="https://github.com/user-attachments/assets/8209332b-a830-43f1-81cf-5e0bb0a2d8ae" />
1 parent d762fc3 commit 934de5c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/SearchElement.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export default class SearchElement {
5656
{
5757
type: 'text',
5858
placeholder: searchLabel || 'search',
59+
name: 'geosearch',
5960
onInput: this.onInput,
6061
onKeyUp: (e) => this.onKeyUp(e),
6162
onKeyPress: (e) => this.onKeyPress(e),

0 commit comments

Comments
 (0)