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

Added support for defaultSelectedItem. #2920

Merged
merged 5 commits into from
Sep 12, 2018

Conversation

danilotorrisi
Copy link
Contributor

@danilotorrisi danilotorrisi commented Sep 10, 2018

Fixes #2784

Checklist

Changes proposed in this pull request:

Fixes #2784.

Reviewers should focus on:

The Suggest now accepts a defaultSelectedItem prop to set the initial value of the component in uncontrolled mode ( default uncontrolled state ).

Copy link
Contributor

@giladgray giladgray left a comment

Choose a reason for hiding this comment

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

almost there @danilotorrisi , just some polish needed

packages/select/src/components/select/suggest.tsx Outdated Show resolved Hide resolved
packages/select/src/components/select/suggest.tsx Outdated Show resolved Hide resolved
packages/select/test/suggestTests.tsx Outdated Show resolved Hide resolved
packages/select/test/suggestTests.tsx Outdated Show resolved Hide resolved
packages/select/src/components/select/suggest.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@giladgray giladgray left a comment

Choose a reason for hiding this comment

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

code change looks good but let's wax philosophical on comment theory for a moment 😄

packages/select/src/components/select/suggest.tsx Outdated Show resolved Hide resolved
packages/select/src/components/select/suggest.tsx Outdated Show resolved Hide resolved
@giladgray giladgray merged commit ddb2dbf into palantir:develop Sep 12, 2018
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.

2 participants