question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug(select): Options panel positioning does not work

See original GitHub issue

Reproduction

Steps to reproduce:

  1. here is the repo to show the problem
    • npm install, ng serve
  2. Once you open up browser scroll down so you force select to open towards up

Screen Shot 2020-06-12 at 10 10 05 AM

  1. select should open normally
  2. scroll down in the option panel and select last item Tom1ato
  3. Open up the select again and the overlay panel is completly off. Screen Shot 2020-06-12 at 10 11 27 AM

Expected Behavior

What behavior were you expecting to see?

I would like to maintain the behavior when you initially opened up the select. Overlay should stay on the same possition and scroll correctly to selected item

Actual Behavior

What behavior did you actually see? Overlay jump all the way up, completly off from triggering select and Does not even scroll to selected item.

Environment

Angular CLI: 9.0.7
Node: 12.0.0
OS: darwin x64

Angular: 9.0.7
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.900.7
@angular-devkit/build-angular     0.900.7
@angular-devkit/build-optimizer   0.900.7
@angular-devkit/build-webpack     0.900.7
@angular-devkit/core              9.0.7
@angular-devkit/schematics        9.0.7
@angular/cdk                      9.2.4
@angular/material                 9.2.4
@ngtools/webpack                  9.0.7
@schematics/angular               9.0.7
@schematics/update                0.900.7
rxjs                              6.5.5
typescript                        3.7.5
webpack                           4.41.2
    

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
crisbetocommented, Jul 12, 2020

Looks like an issue with the logic that tries to position the option over the trigger doesn’t work correctly when it’s close to the bottom of the screen and the active option is around the middle of the list.

0reactions
angular-automatic-lock-bot[bot]commented, Dec 3, 2022

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix position of mat-select-panel in Angular Material
My predictions why it does not work: mat-select-panel has a position absolute and is set to position depending on cdk-overlay-panel.
Read more >
Handling common accessibility problems - MDN Web Docs
Objective: To be able to diagnose common Accessibility problems, ... for example the <select> element can have its options displayed and ...
Read more >
23106 - <select> drop-down is always left-aligned even the dir ...
Issue 23106: <select> drop-down is always left-aligned even the dir of <select> is RTL. · 1. Open the above URL. · 2. click...
Read more >
Fixes or workarounds for recent issues in Outlook for PC
Jump to each section on this page for specific Outlook issue: Outlook issues after connecting Outlook to Outlook.com. Outlook known issues in the...
Read more >
Angular ng-select - npm
A boolean should be returned. dropdownPosition, bottom | top | auto, auto, no, Set the dropdown position on open.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found