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
Clear input value #35
base: master
Are you sure you want to change the base?
Conversation
@slauzinho good idea, but your input is surely already control from your side. And not everyone want this behavior I think. Maybe I can add a boolean option where this can do both. What you think? |
Sounds good to me, I can do it for you if you want. Should I add it as a prop of the component or a param for the |
I think the component is best, but I'm open to anything |
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.
Rollback this change and I will able to merge
@@ -39,7 +39,12 @@ export interface DefaultProps { | |||
minLength: number; | |||
debounce: number; | |||
language: string; | |||
queryTypes: 'address' | 'geocode' | 'cities' | 'establishment' | 'geocode|establishment'; | |||
queryTypes: |
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 dont think this change is need can you rollback this one
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.
Will work on submitting an updated PR this weekend
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.
Perfect thank you :)
@slauzinho did you forget about this? |
what happened to this change? Any news? It would be great to have that boolean as a parameter to clearSearch....really handy |
Can we also clear the input value if we call
clearSearch
since it implies that we are clearing the search input.