Skip to content

Commit

Permalink
fix(ltLocationInput): pasted coordinates appear twice
Browse files Browse the repository at this point in the history
See #70.
  • Loading branch information
simon04 committed Feb 17, 2024
1 parent 392fd6d commit 3da00e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/components/ltLocationInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
class="form-control"
type="text"
@blur="updateLatLng(($event.target as HTMLInputElement).value)"
@paste="updateLatLng($event.clipboardData?.getData('text'))"
@paste="
updateLatLng($event.clipboardData?.getData('text'));
$event.preventDefault();
"
/>
<button
class="btn btn-secondary"
Expand Down

0 comments on commit 3da00e4

Please sign in to comment.