angular_components icon indicating copy to clipboard operation
angular_components copied to clipboard

Missing required on material select

Open e-belair opened this issue 6 years ago • 2 comments

I can't make material dropdown select working with required attribute It seems not appearing on the library

e-belair avatar Jan 29 '19 10:01 e-belair

Are you using the angular_forms package? https://webdev.dartlang.org/api?package=angular_forms

nshahan avatar Feb 01 '19 00:02 nshahan

I guess, this is the code of the form:

<form (ngSubmit)="onSubmit()" #etablissementSearchForm="ngForm" *ngIf="searching == true">
                <material-dropdown-select
                        buttonText="{{etablissementSearch.zone??'Toutes zones'}}"
                        deselectLabel="Toutes zones"
                        [(ngModel)]="etablissementSearch.zone"
                        [options]="zonesByZonage"
                        [required]="true"
                        class="block-width dropdown-align-with-text">
                </material-dropdown-select>
</form>

Also, I've searched for the required attr in the angular_component/material_select lib but I did not found nothing.

e-belair avatar Feb 01 '19 07:02 e-belair