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

[input-datepicker] formatter does not work for pre-filled inputs #1349

Closed
CigdemGurdal opened this issue Apr 21, 2021 · 2 comments
Closed

[input-datepicker] formatter does not work for pre-filled inputs #1349

CigdemGurdal opened this issue Apr 21, 2021 · 2 comments

Comments

@CigdemGurdal
Copy link

Expected behavior

When modelValue is set with a default value, formatting should work.

Actual Behavior

Formatter is not applied for the default value when the screen is rendered for the first time.

https://webcomponents.dev/edit/VN1AKgpTlGmjVhBfDShH/src/index.stories.js

Additional context

input-datepicker - "0.19.1"

@tlouisse
Copy link
Member

tlouisse commented Apr 21, 2021

Thanks for the issue. The formatting properties are not 'order independent' yet.

Here, I defined the formatter before the modelValue and then it works:
https://webcomponents.dev/edit/LtIxk2Ewk1i0pGqQWSE7/src/index.stories.js

@tlouisse
Copy link
Member

Closing this one and added member order independence here: #787

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

No branches or pull requests

2 participants