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

Disable and enable don't work in multiple mz-select #346

Open
daianekostecki opened this issue Aug 28, 2018 · 1 comment
Open

Disable and enable don't work in multiple mz-select #346

daianekostecki opened this issue Aug 28, 2018 · 1 comment

Comments

@daianekostecki
Copy link

When I use a select with multiple mz-select and disabled the select, if I try enable the select it doesn't happend.

HTML :
<select formControlName="bug" name="bug" multiple mz-select id="bug" [placeholder]="'Selecione'"
[filledIn]="true" >
<option *ngFor="let item of bug" class="left circle" [value]="item.bug">{{item.bug}}

TS:
In the ngOnInit() {
this.formulario.get('bug').disable();
this.EnableBug(data);
}

EnableBug(data) {
this.bugSelect= data.includes('E');
if (this.episodioSelecionado) {
this.formulario.get('bug').enable();
} else {
this.formulario.get('bug').disable();
}

Your Environment

  • Version used: ^6.0.6
  • Angular version used: ^6.0.6
  • Browser Name and version: Google Chrome Version 68.0.3440.106
  • Operating System and version (desktop or mobile): Windows 10
@scote
Copy link
Contributor

scote commented Aug 29, 2018

Can you create an example on Stackblitz (https://stackblitz.com/edit/ngx-materialize)? I will be easier to reproduce and debug your problem.

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

2 participants