Skip to content

Commit ab98f4c

Browse files
authored
Merge branch 'alpha' into fix/context-menu-position
2 parents 495e803 + e8fef85 commit ab98f4c

File tree

5 files changed

+20
-5
lines changed

5 files changed

+20
-5
lines changed

changelogs/CHANGELOG_alpha.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# [7.2.0-alpha.3](https://github.com/parse-community/parse-dashboard/compare/7.2.0-alpha.2...7.2.0-alpha.3) (2025-05-19)
2+
3+
4+
### Features
5+
6+
* Keyboard Enter key can be used to select item in data browser filter dialog field dropdown ([#2771](https://github.com/parse-community/parse-dashboard/issues/2771)) ([dc14710](https://github.com/parse-community/parse-dashboard/commit/dc14710b63b0dc79ae52b322c683204941c4cb11))
7+
18
# [7.2.0-alpha.2](https://github.com/parse-community/parse-dashboard/compare/7.2.0-alpha.1...7.2.0-alpha.2) (2025-05-09)
29

310

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "parse-dashboard",
3-
"version": "7.2.0-alpha.2",
3+
"version": "7.2.0-alpha.3",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/parse-community/parse-dashboard"

src/components/Autocomplete/Autocomplete.react.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,17 @@ export default class Autocomplete extends Component {
251251
// Enter
252252
const { userInput } = this.state;
253253

254-
if (e.keyCode === 13) {
255-
if (userInput && userInput.length > 0) {
254+
if (e.keyCode === 13 || e.key === 'Enter') {
255+
if (userInput && userInput.length > 0 && this.props.onSubmit) {
256256
this.props.onSubmit(userInput);
257257
}
258+
259+
this.setState({
260+
active: true,
261+
activeSuggestion: 0,
262+
showSuggestions: false,
263+
userInput: filteredSuggestions[activeSuggestion] || userInput,
264+
});
258265
} else if (e.keyCode === 9) {
259266
// Tab
260267
// do not type it

src/components/SuggestionsList/SuggestionsList.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
color: #0e69a1;
3030
cursor: pointer;
3131
font-weight: 500;
32+
background: rgba(255, 255, 255, 0.1) !important;
3233
}
3334

3435
.suggestions li:not(:last-of-type) {

0 commit comments

Comments
 (0)