Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants