Skip to content

Commit

Permalink
Use a more precise input type (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
KristjanESPERANTO authored Dec 18, 2022
1 parent 04e71a6 commit 44cd093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/control.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export class GeocoderControl extends EventedControl {
icon.setAttribute('aria-label', this.options.iconLabel);

const input = (this._input = L.DomUtil.create('input', '', form) as HTMLInputElement);
input.type = 'text';
input.type = 'search';
input.value = this.options.query;
input.placeholder = this.options.placeholder;
L.DomEvent.disableClickPropagation(input);
Expand Down

0 comments on commit 44cd093

Please sign in to comment.