Skip to content

Commit d7fb5f0

Browse files
committed
chore: Update input types and placeholders for location inputs
1 parent 5f375e2 commit d7fb5f0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

pages/Home.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -497,9 +497,10 @@ const Home = () => {
497497
<div className="location-input-container">
498498
<input
499499
id="location-input"
500-
type="text"
500+
type="search"
501501
placeholder="Not the right location ?"
502502
className="location-input"
503+
enterKeyHint="search"
503504
value={locationInput}
504505
onChange={handleLocationInputChange}
505506
onKeyUp={e => handleSearchBox(e, 1)}
@@ -691,9 +692,10 @@ const Home = () => {
691692
<div className="map-overlay">
692693
<input
693694
id="start-location-input"
694-
type="text"
695+
type="search"
695696
placeholder="Your Location"
696697
className="start-location-input"
698+
enterKeyHint="search"
697699
value={startLocationInput}
698700
onChange={handleStartLocationInputChange}
699701
onKeyUp={e => handleSearchBox(e, 2)}
@@ -717,9 +719,10 @@ const Home = () => {
717719
)}
718720
<input
719721
id="destination-location-input"
720-
type="text"
722+
type="search"
721723
placeholder="Choose Destination"
722724
className="destination-location-input"
725+
enterKeyHint="search"
723726
value={destinationLocationInput}
724727
onChange={handleDestinationLocationInputChange}
725728
onKeyUp={e => handleSearchBox(e, 3)}

0 commit comments

Comments
 (0)