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

Clear input value #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

slauzinho
Copy link

Can we also clear the input value if we call clearSearch since it implies that we are clearing the search input.

@EQuimper
Copy link
Member

EQuimper commented Jan 3, 2020

@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?

@slauzinho
Copy link
Author

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 clearSearch which defaults to not clearing the text field?

@EQuimper
Copy link
Member

EQuimper commented Jan 8, 2020

I think the component is best, but I'm open to anything

Copy link
Member

@EQuimper EQuimper left a 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:
Copy link
Member

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

Copy link
Author

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect thank you :)

@karimcambridge
Copy link

@slauzinho did you forget about this?

@juanlet
Copy link

juanlet commented Apr 22, 2020

what happened to this change? Any news? It would be great to have that boolean as a parameter to clearSearch....really handy

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

Successfully merging this pull request may close these issues.

None yet

4 participants