We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://github.com/james-schwartzkopf/ng8-issues/tree/mat-menu-yPosition
Steps to reproduce:
Should compile cleanly and matMenu should appear in expected position.
Error:
ERROR in src/app/app.component.html(15,32): Property 'yPosition' does not exist on type 'HTMLElement'.
The text was updated successfully, but these errors were encountered:
I wasn't able to reproduce it against angular/angular with the following unit test:
it('should fail', () => { class MatMenuBase { @Input() yPosition !: string; } @Component({ template: '<ng-content></ng-content>', selector: 'mat-menu', exportAs: 'matMenu', }) class MatMenu extends MatMenuBase { } @Directive({selector: '[matMenuTriggerFor]'}) class MenuTrigger { @Input('matMenuTriggerFor') menu !: MatMenu; } @Component({ template: ` <button [matMenuTriggerFor]="menu">Open</button> <mat-menu #menu="matMenu" [yPosition]="'above'"></mat-menu> ` }) class MyComponent { @ViewChild(MenuTrigger, {static: false}) menuTrigger !: MenuTrigger; } TestBed.configureTestingModule({declarations: [MyComponent, MenuTrigger, MatMenu]}); const fixture = TestBed.createComponent(MyComponent); fixture.detectChanges(); expect(fixture.componentInstance.menuTrigger.menu.yPosition).toBe('above'); });
I wonder whether this isn't an issue with packaging.
Sorry, something went wrong.
No branches or pull requests
Reproduction
https://github.com/james-schwartzkopf/ng8-issues/tree/mat-menu-yPosition
Steps to reproduce:
Expected Behavior
Should compile cleanly and matMenu should appear in expected position.
Actual Behavior
Error:
Environment
The text was updated successfully, but these errors were encountered: