Skip to content

L3 Workshop: Menu option is not visible properly

0

Enter image description here Options are not visible

asked 10 months ago144 views

1 Answer
0
Accepted Answer

This is a known issue with the dynamic auto-complete feature in the AWS Blu Age L3 workshop. The drop-down menu options are not displaying correctly because of styling issues in the Angular component.

There are several ways to fix this:

  1. Modify the component styling in the dynamic-autocomplete.component.ts file by adding:
  • panelWidth="auto" to the mat-autocomplete tag
  • [ngStyle]="{'width': 'auto', 'min-width': '100%', 'max-width': 'none'}" to the mat-option tag
  • Add CSS styles to ensure proper display:
::ng-deep .mat-autocomplete-panel {
min-width: 100% !important;
max-width: none !important;
width: auto !important;
}
::ng-deep .mat-option {
white-space: nowrap;
overflow: visible;
}
  1. A simpler alternative is to just increase the size parameter in the dynamic-autocomplete tag. You can change the size from the current value to 25:
<dynamic-autocomplete [options]='getMenuOptions()' [id]='"option"' [size]=25 [line]=20 [column]=41 [(ngModel)]='option'></dynamic-autocomplete>

Either of these approaches should resolve the issue and make the dropdown menu options visible.
Sources
AWS Blu Age L3 workshop - User experience : Improvement - Dynamic auto complete issue | AWS re:Post

answered 10 months ago

EXPERT

reviewed 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.