0

I am aware of Angular mat-selection-list, How to make single checkbox select similar to radio button? and related API, however

<mat-selection-list [multiple]="false"> 

does not seem to be working well. Here is minimal reproduction snippet: https://stackblitz.com/edit/angular-r13hpx?file=src/app/list-selection-example.html

And its screenshot: Checkboxes are not being rendered properly when multiple att set to false

Is this a bug? Did not find it reported anywhere :( ...

Cheers!

Community
  • 1
  • 1
  • This seems to be a bug. Classes are set correctly on options and the selection value is actually also set correctly. Only the template is conditioning out the checkboxes, so it is not being rendered at all when multiple attribute set to falsy value. Will report on to dev team. – kristian Mar 17 '20 at 09:15
  • reported as https://github.com/angular/components/issues/18847 – kristian Mar 17 '20 at 09:28

0 Answers0