You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 16, 2019. It is now read-only.
I've run into the same problem, here you have an example <mdl-select placeholder="Select"> <mdl-option value="first">First Text</mdl-option> <mdl-option value="second">Second Text</mdl-option> </mdl-select>
did quick check and propblem appears when we do not use ngModel (or any other directive in mdl-option), in the example above, this code is executed after this, so text property stays undefined and select is not displaying text from selected option.
When we use ngModel, the code is executed in corect order and everything works as expected.
One of the options to fix that would be to change this.textByValue[this.stringifyValue(selectOptionComponent.value)] = selectOptionComponent.text;
to this.textByValue[this.stringifyValue(selectOptionComponent.value)] = selectOptionComponent.contentWrapper.nativeElement.textContent.trim();
<mdl-select [(ngModel)] = "om">
<mdl-option [value]="a">a
<mdl-option [value]="b">b
With this, there will be no text showing on the select bar. Choices can be seen and checked, but nothing would be shown as a result in the bar.
The text was updated successfully, but these errors were encountered: