Skip to content

Commit 2095e1a

Browse files
hugohezelmshriver
authored andcommitted
fix(IQE-3454): Enable scrolling of dropdowns on Edit Project page
1 parent 16749a2 commit 2095e1a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

frontend/src/pages/admin/project-edit.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const ProjectEdit = () => {
113113
const onOwnerSelect = (event, value) => {
114114
setSelectedOwner(value.user);
115115
setIsOwnerOpen(false);
116-
setFilterValueOwner('');
116+
setFilterValueOwner(value.user.name);
117117
setInputValueOwner(value.user.name);
118118
};
119119

@@ -126,7 +126,7 @@ const ProjectEdit = () => {
126126
const onDashboardSelect = (event, value) => {
127127
setSelectedDashboard(value.dashboard);
128128
setIsDashboardOpen(false);
129-
setFilterValueDashboard('');
129+
setFilterValueDashboard(value.dashboard.title);
130130
setInputValueDashboard(value.dashboard.title);
131131
};
132132

@@ -191,7 +191,6 @@ const ProjectEdit = () => {
191191
if (id && id !== 'new') {
192192
HttpClient.get([Settings.serverUrl, 'dashboard'], {
193193
'project_id': id,
194-
'pageSize': 10
195194
})
196195
.then(response => HttpClient.handleResponse(response))
197196
.then(data => {
@@ -365,6 +364,8 @@ const ProjectEdit = () => {
365364
onSelect={onOwnerSelect}
366365
onOpenChange={() => setIsOwnerOpen(false)}
367366
toggle={toggleOwner}
367+
isScrollable={true}
368+
maxMenuHeight="300px"
368369
>
369370
<SelectList id="select-typeahead-listbox">
370371
{filteredUsers?.map((user, index) => (
@@ -395,6 +396,8 @@ const ProjectEdit = () => {
395396
onSelect={onDashboardSelect}
396397
onOpenChange={() => setIsDashboardOpen(false)}
397398
toggle={toggleDashboard}
399+
isScrollable={true}
400+
maxMenuHeight="300px"
398401
>
399402
<SelectList id="select-typeahead-listbox">
400403
{filteredDashboards.map((dashboard, index) => (

0 commit comments

Comments
 (0)