Skip to content

Commit

Permalink
Also autofocus if the user clicked to open the preset pane
Browse files Browse the repository at this point in the history
re: #1265, re: #1267

This is another situation where we expect the focus to be on the input field.
  • Loading branch information
bhousel committed Jan 5, 2024
1 parent 79cd0aa commit 1830594
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/ui/inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ export function uiInspector(context) {
presetList.selected(selected);
}

// render and autofocus only if the feature is new.
// render preset list, focus on input field in some situations
presetPane
.call(presetList.autofocus(_newFeature));
.call(presetList.autofocus(_newFeature || animate));
};


Expand Down

0 comments on commit 1830594

Please sign in to comment.