Skip to content

Commit 8b28375

Browse files
autocomplete - change console.log to alert for clarity
1 parent 3d47675 commit 8b28375

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

example/autocomplete.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
});
2525

2626
inputElement.addEventListener('autocomplete-select', function (e) {
27-
console.log('Selected item:', e.detail);
27+
if ('Address' == e.detail.precision)
28+
alert('Selected '+ e.detail.label);
2829
});
2930
</script>
3031
</body>

0 commit comments

Comments
 (0)