-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add showDefaultInputIcon and customInputIcon for SingleDatePicker #513
Conversation
Awesome. I will take a look at this tomorrow! |
This would be super useful for me to have right now. @majapw How goes the reviewal? |
1 similar comment
@b0gok please rebase on the command line; the "update" button on github creates a merge commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you update the README and SingleDatePickerShape
as well?
@@ -54,6 +54,8 @@ const defaultProps = { | |||
readOnly: false, | |||
screenReaderInputMessage: '', | |||
showClearDate: false, | |||
showDefaultInputIcon: false, | |||
customInputIcon: null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to pass this through as well, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you are right, my mistake 🙁
examples/SingleDatePickerWrapper.jsx
Outdated
@@ -36,6 +36,9 @@ const defaultProps = { | |||
required: false, | |||
screenReaderInputMessage: '', | |||
showClearDate: false, | |||
showDefaultInputIcon: false, | |||
customInputIcon: null, | |||
customCloseIcon: null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change isn't adding a customCloseIcon
is it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed it
showDefaultInputIcon | ||
/> | ||
)) | ||
.addWithInfo('with custom show calendar icon', () => ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work right now? We don't appear to be passing through the customInputIcon
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now it should work properly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to add them to the SingleDatePickerShape
file! :) I think that's the last thing.
Done (: |
I would be forever grateful if this release happened soon 🤞 |
v12.1.0 has been released! |
Are there any examples for this use case documented? |
According to issue #368