This repository has been archived by the owner on Mar 27, 2023. It is now read-only.
clrDate input is not emptied on model reset #3012
Labels
Comments
@coryrylan |
This looks like it is an issue in 1.0.4 still. I will take a look. |
A workaround would be to manually reset the ngModel of the input (as we're using angular form as a basis of our component). |
Just an update, I believe I have a fix for this and will have a PR soon. Found another related bug while trying to fix this one. |
coryrylan
pushed a commit
to coryrylan/clarity
that referenced
this issue
Jan 16, 2019
When using clrDate, setting input to null would not clear the input. closes vmware-archive#3012 Signed-off-by: Cory Rylan <crylan@vmware.com>
coryrylan
pushed a commit
to coryrylan/clarity
that referenced
this issue
Jan 22, 2019
When using clrDate, setting input to null would not clear the input. closes vmware-archive#3012 Signed-off-by: Cory Rylan <crylan@vmware.com>
coryrylan
added a commit
that referenced
this issue
Jan 22, 2019
* [NG] refactor date input, add tests Signed-off-by: Cory Rylan <crylan@vmware.com> * [NG] fix input reset on datepicker When using clrDate, setting input to null would not clear the input. closes #3012 Signed-off-by: Cory Rylan <crylan@vmware.com>
Hi there 👋, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed issues after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
When the model of
clrDate
is set tonull
, the input is not reset to an empty string.How to reproduce
Stackblitz
Steps to reproduce the behavior:
Today
buttonClear
button to set the date tonull
Expected behavior
The text in the input should be emptied.
Versions
App
Device:
Additional notes
Related to #2474, but not a duplicate (that issue only concerned reactive forms)
The text was updated successfully, but these errors were encountered: