Skip to content

Commit

Permalink
front: fix loose focus while entering characters in speed limit tag i…
Browse files Browse the repository at this point in the history
…nput
  • Loading branch information
kmer2016 committed Jan 25, 2024
1 parent bd665e2 commit f062f1f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { SpeedSectionEntity } from 'types';
import { AiOutlinePlusCircle } from 'react-icons/ai';
import { FaTimes } from 'react-icons/fa';
import { MdSpeed } from 'react-icons/md';
import { cloneDeep, isEmpty, map, mapKeys, omit } from 'lodash';
import { cloneDeep, isEmpty, mapKeys, omit } from 'lodash';

import EditorContext from '../../../context';
import { ExtendedEditorContextType } from '../../editorContextTypes';
Expand Down Expand Up @@ -74,8 +74,8 @@ const SpeedSectionMetadataForm: FC = () => {
{t('Editor.tools.speed-edition.additional-speed-limit')}
</div>
)}
{map(entity.properties.speed_limit_by_tag || {}, (value, key) => (
<div key={key} className="form-group field field-string">
{Object.entries(entity.properties.speed_limit_by_tag || {}).map(([key, value], index) => (
<div key={index} className="form-group field field-string">
<div className="d-flex flex-row align-items-center">
<input
required
Expand Down

0 comments on commit f062f1f

Please sign in to comment.