Skip to content

[Select] Add SelectDisplayProps prop#10408

Merged
oliviertassinari merged 7 commits into
mui:v1-betafrom
noah-potter:feature/add-SelectDisplayProps
Feb 23, 2018
Merged

[Select] Add SelectDisplayProps prop#10408
oliviertassinari merged 7 commits into
mui:v1-betafrom
noah-potter:feature/add-SelectDisplayProps

Conversation

@noah-potter
Copy link
Copy Markdown
Contributor

@noah-potter noah-potter commented Feb 22, 2018

Closes #10401

@noah-potter
Copy link
Copy Markdown
Contributor Author

noah-potter commented Feb 23, 2018

Is this error something I can resolve? It's not entirely clear what the error is.

@mbrookes
Copy link
Copy Markdown
Member

@noah-potter run yarn docs:api or npm run docs:api

Copy link
Copy Markdown
Member

@oliviertassinari oliviertassinari left a comment

Choose a reason for hiding this comment

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

I have one concern with exposing the SelectDisplayProps property to the top Select component. It's boilerplate the native implementation might not need. What about scoping the change to the SelectInput component waiting for the component to be split with #10335?

Comment thread src/Select/SelectInput.js Outdated
open: openProp,
readOnly,
renderValue,
SelectDisplayProps = {},
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

No need for the default.

@noah-potter
Copy link
Copy Markdown
Contributor Author

@oliviertassinari Should that scoping happen whenever SelectInput is split? I'm not sure how to make this change anticipate the two SelectInputs

@oliviertassinari oliviertassinari added type: new feature Expand the scope of the product to solve a new problem. scope: select Changes related to the select. and removed PR: needs revision labels Feb 23, 2018
@oliviertassinari
Copy link
Copy Markdown
Member

I think that the simplest path to solve #10335 is to introduce a NativeSelect component, sharing some code with Select.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: select Changes related to the select. type: new feature Expand the scope of the product to solve a new problem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants