Browse Source

지도 검색 - 엔터시 검색 추가

feature/auth
junh_eee 2 years ago
parent
commit
add80872f1
  1. 11
      src/components/basis/flight/plan/FlightPlanAreaMap.js

11
src/components/basis/flight/plan/FlightPlanAreaMap.js

@ -172,6 +172,12 @@ const FlightPlanAreaMap = props => {
map.morph(latlng, 16, options)
}
const handleEnter = e => {
if (e.key == 'Enter') {
handleSearch();
}
};
return (
<Card className='mb-0'>
<CardBody>
@ -213,10 +219,11 @@ const FlightPlanAreaMap = props => {
type='text'
id='searchInput'
name='searchInput'
placeholder='검색명을 입력하세요.'
onChange={handleChange}
bsSize='sm'
autocomplete='off'
placeholder='검색명을 입력하세요.'
onChange={handleChange}
onKeyPress={handleEnter}
/>
</InputGroup>
<div className='search-result-comp'>

Loading…
Cancel
Save