Skip to content

Commit

Permalink
Fix #9650 forcing geometries tab to be selected when adding a new one (
Browse files Browse the repository at this point in the history
  • Loading branch information
MV88 authored Oct 27, 2023
1 parent c4f660a commit 8fe23e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ export function FeaturesEditor({
}

function handleAddFeature(type, properties) {
onSelectTab('coordinates', selected);
const id = uuid();
handleOnChange((prevCollection) => {
const newFeature = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ function AnnotationsPanel({
<Glyphicon glyph={validateFeatures() ? 'ok-sign text-success' : 'exclamation-mark text-danger'}/>
</NavItem>
<NavItem
key="geometries"
key="settings"
eventKey="settings"
onClick={() => setTab('settings')}>
<Message msgId="settings"/>
Expand Down

0 comments on commit 8fe23e9

Please sign in to comment.