Skip to content
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

[DateInputs] Setting the size and fillMode properties to a string value throws an error #3675

Open
yanmariomenev opened this issue May 19, 2022 · 2 comments

Comments

@yanmariomenev
Copy link
Contributor

yanmariomenev commented May 19, 2022

Describe the bug
The bug is present in the DateTimePicker, DatePicker, and TimePicker components.
When setting the size property to a string like size="small" a TypeScrip error is thrown:
chrome_2ZtztGUxsB

This is also valid for fillMode property.

To Reproduce
Steps to reproduce the behavior:
size - https://stackblitz.com/edit/angular-balrnj-yggdax?file=src%2Fapp%2Fconfigurator.component.ts,src%2Fapp%2Fapp.component.ts

fillMode - https://stackblitz.com/edit/angular-9s2ehv-fgybbb?file=src%2Fapp%2Fapp.component.ts

Workaround
https://stackblitz.com/edit/angular-balrnj-kuwblx?file=src%2Fapp%2Fconfigurator.component.ts,src%2Fapp%2Fapp.component.ts

@yanmariomenev yanmariomenev changed the title [DateInputs] Setting the size property to string throws an error [DateInputs] Setting the size and fillMode properties to a string value throws an error Jul 20, 2022
@ZenSide
Copy link

ZenSide commented Oct 28, 2022

I confirm this issue is still present in datepicker and timepicker components in version 7.1.2.
It's still not possible to set a size for those components via a string attribute. size="small". It's working via angular binding [size]="'small'"

@aldrashan
Copy link

Still broken in version 13.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants