Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select element always has downwards orientation #427

Open
singhda8 opened this issue Dec 14, 2018 · 0 comments
Open

Select element always has downwards orientation #427

singhda8 opened this issue Dec 14, 2018 · 0 comments

Comments

@singhda8
Copy link

singhda8 commented Dec 14, 2018

Bug description:

When clicking on a select element, the drop down always expands downwards. In cases where the select is at the edge of the screen, the options get cut off and require scrolling the window to see all options.

Code template for creating drop-down:

<sui-select placeholder="Animals" class="selection">
      <sui-select-option value="Dog"></sui-select-option>
      <sui-select-option value="Cat"></sui-select-option>
      <sui-select-option value="Kirby"></sui-select-option>
      <sui-select-option value="Yoshi"></sui-select-option>
 </sui-select>

Expected Behavior

The drop down should expand upwards if all options can't be displayed in the normal downwards flow. This is the behavior of the Semantic UI drop-downs as shown on this page:
https://semantic-ui.com/modules/dropdown.html

Working example

See this stackblitz example:
https://stackblitz.com/edit/angular-awt9dw?file=src%2Fapp%2Fapp.component.html

The select at the bottom always gets cut off.

Versions

Angular: 7.0.2
ng2-semantic-ui: 0.9.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant