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

[select] fix(QueryList): trim whitespace when creating new items #3832

Merged
merged 6 commits into from
Apr 9, 2020

Conversation

adidahiya
Copy link
Contributor

@adidahiya adidahiya commented Nov 10, 2019

Fixes #3765

Checklist

  • Includes tests
  • Update documentation

Changes proposed in this pull request:

QueryList now ignores any whitespace around the input text when reporting changes. Leading/trailing whitespace around controlled query text (supplied through a query prop) is still preserved.

@blueprint-bot
Copy link

[select] fix(QueryList): trim whitespace around query input text

Previews: documentation | landing | table

@adidahiya
Copy link
Contributor Author

🙅‍♂ this is a bad approach, it prevents entering any spaces into the input at all

@adidahiya
Copy link
Contributor Author

seems to work fine after merging the latest develop... not sure why, the commits between then and now don't immediately suggest something else which made it work 🤷‍♂️

@blueprint-bot
Copy link

Merge remote-tracking branch 'origin/develop' into ad/fix-multiselect

Previews: documentation | landing | table

@adidahiya
Copy link
Contributor Author

just kidding... it's not fixed. it's only MultiSelect which is working as intended now

@blueprint-bot
Copy link

trim query when sending to "create new item"

Previews: documentation | landing | table

@blueprint-bot
Copy link

fix test with new impl behavior

Previews: documentation | landing | table

@blueprint-bot
Copy link

fix lint

Previews: documentation | landing | table

@adidahiya adidahiya merged commit db66df8 into develop Apr 9, 2020
@adidahiya adidahiya deleted the ad/fix-multiselect branch April 9, 2020 20:19
@adidahiya adidahiya changed the title [select] fix(QueryList): trim whitespace around query input text [select] fix(QueryList): trim whitespace when creating new items Apr 9, 2020
@adidahiya adidahiya mentioned this pull request Apr 9, 2020
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.

Leading spaces in free text input in dropdowns are not displayed
2 participants