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

Loading…
Cancel
Save