-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
Select dropdown bug, adding icon in select box option #100
Comments
Do not use e.g. <ly-field>
<ly-select placeholder="Label" [formControl]="fruits" multiple>
<ly-select-trigger>
{{fruits.value ? fruits.value[0] : ''}}
<span *ngIf="fruits.value?.length > 1">
(+{{fruits.value.length - 1}} {{fruits.value?.length === 2 ? 'other' : 'others'}})
</span>
</ly-select-trigger>
<ly-option *ngFor="let fruit of fruitList" [value]="fruit"><ly-icon>change_history</ly-icon> {{ fruit }}</ly-option>
</ly-select>
</ly-field> export class SelectCustomTriggerComponent {
fruits = new FormControl();
fruitList = [
'Apple',
'Banana',
'Cherry',
'Mango',
'Orange',
'Pineapple',
'Strawberry',
];
} |
is a new feature that is only available for the nightly version. yarn add @alyle/ui@nightly |
Thanks for quick reply. but i am using "Minimal" and after updating and adding "ly-select-trigger" getting unknown angular component error. If 'ly-select-trigger' is an Angular component, then verify that it is part of this module. any quick solution? |
Make sure version yarn add @alyle/[email protected] |
or you can also install the latest builds yarn add https://github.com/A-l-y-l-e/alyle-ui-builds.git |
🪲 Bug report
Describe the bug
in select dropdown with icon option, after selecting value from dropdown, icon name also display in select box.
expected output:
only dropdown values should display in select box.
The text was updated successfully, but these errors were encountered: