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

[Autocomplete] Fix incorrect selected state in examples #1053

Merged
merged 1 commit into from
Feb 27, 2019

Conversation

jim-chou-shopify
Copy link
Contributor

@jim-chou-shopify jim-chou-shopify commented Feb 15, 2019

WHY are these changes introduced?

Few README examples in autocomplete component use label of selected options as selected state in onSelect callbacks.
This causes selected options not to be highlighted and developers wondering what selected prop does in Autocomplete component.

WHAT is this pull request doing?

Update selected state with selected props received from onSelect callback so selected options are highlighted.

screen shot 2019-02-15 at 4 01 08 pm

@ghost
Copy link

ghost commented Feb 15, 2019

👋 Thanks for opening your first pull request. A contributor should give feedback soon. If you haven’t already, please check out the contributing guidelines. You can also join #polaris on the Shopify Partners Slack.

@BPScott BPScott temporarily deployed to polaris-react-pr-1053 February 15, 2019 22:24 Inactive
@jim-chou-shopify jim-chou-shopify requested a review from a team February 15, 2019 22:25
@AndrewMusgrave AndrewMusgrave self-requested a review February 20, 2019 15:09
@BPScott BPScott temporarily deployed to polaris-react-pr-1053 February 20, 2019 17:02 Inactive
@jim-chou-shopify jim-chou-shopify force-pushed the fix-autocomplete-examples branch from 38b4a2d to b7e5555 Compare February 20, 2019 17:04
@BPScott BPScott temporarily deployed to polaris-react-pr-1053 February 20, 2019 17:04 Inactive
Copy link
Member

@AndrewMusgrave AndrewMusgrave left a comment

Choose a reason for hiding this comment

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

Thanks 😄 🎩 ✅

@jim-chou-shopify jim-chou-shopify force-pushed the fix-autocomplete-examples branch from b7e5555 to 9147892 Compare February 27, 2019 17:45
@BPScott BPScott temporarily deployed to polaris-react-pr-1053 February 27, 2019 17:45 Inactive
@ghost
Copy link

ghost commented Feb 27, 2019

🎉 Thanks for your contribution to Polaris React!

@amrocha amrocha temporarily deployed to production March 7, 2019 22:06 Inactive
@kaelig kaelig deleted the fix-autocomplete-examples branch June 27, 2019 01:08
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.

5 participants