ls1intum / Artemis

Artemis - Interactive Learning with Automated Feedback
https://docs.artemis.cit.tum.de
MIT License
452 stars 275 forks source link

Autocomplete dropdown opens unnecessarily when adding new category #8873

Open asliayk opened 6 days ago

asliayk commented 6 days ago

Describe the bug

When a user selects a category from preexisting categories for an exercise, the autocomplete dropdown menu does not open automatically; the user needs to click on the input area to open it.

However, when a user adds a new category, the autocomplete dropdown menu opens automatically without clicking the input area. This behavior occurs even when there are already 2 categories, which is the maximum number allowed for an exercise category. Consequently, the dropdown opens unnecessarily, confusing the user.

To Reproduce

  1. Go to course management page and click on a course
  2. Click on exercises button and click on create programming exercise button
  3. In categories section, add a preexisting category, then create a new category to see the difference in dropdown menu

Expected behavior

Screenshots

image

Which version of Artemis are you seeing the problem on?

7.3.1

What browsers are you seeing the problem on?

Chrome

Additional context

No response

Relevant log output

No response