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

Combo box selected #1934

Merged
merged 4 commits into from
Nov 15, 2018
Merged

Combo box selected #1934

merged 4 commits into from
Nov 15, 2018

Conversation

yairtawil
Copy link
Member

No description provided.

@@ -1,5 +1,7 @@
:host {
display: block;
position: relative;
z-index: 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check if can avoid using z-index

selectedChanged$ = this._parent.injector.get(NgControl).valueChanges.pipe(tap(selected => {

if (selected && selected === this.value) {
console.log(this.el.nativeElement.outerHTML);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

console.log

import { ComboBoxTriggerComponent } from '../combo-box-trigger/combo-box-trigger.component';
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
import { ControlValueAccessor, NG_VALUE_ACCESSOR, NgControl } from '@angular/forms';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check imports

@@ -52,7 +52,7 @@
Public
</ansyn-combo-box-option>

<ansyn-combo-box-option value="private" [disabled]="true">
<ansyn-combo-box-option value="private" >
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

readd [disabled]="true", also consider making it attribute

Copy link
Contributor

@ramtob ramtob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great!

@ramtob ramtob merged commit 0fa57e6 into master Nov 15, 2018
@ramtob ramtob deleted the combo-box-selected branch November 15, 2018 09:44
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

Successfully merging this pull request may close these issues.

2 participants