Material-ui: [AutoComplete] No defaultValue or value for this component?

Created on 4 Feb 2016  路  9Comments  路  Source: mui-org/material-ui

Most helpful comment

Finded, searchText attr

All 9 comments

Finded, searchText attr

@alitaheri Aside from the callback standardization https://github.com/callemall/material-ui/issues/2957, iI think that it would be good to standardize the value and defaultValue properties.

@oliviertassinari We should get rid of defaultValue actually. and only use value. so that the Wrapper can have defaultValue for it's state :grin:

I agree (https://github.com/callemall/material-ui/issues/2784). But the wrapper would have a defaultValue property right :grin:?

But the wrapper would have a defaultValue property right :grin:?

Indeed ^_^

Could you maybe already now add a note to the docs stating something amongst the lines of

defaultValue: Use searchText instead.

?

@neopostmodern Yes, we could. This searchText is definitly not standard across the react community.

Actually, I think that we should go one step further by renaming the searchText property to value.

I'm closing this issue in favor of #5062. Thanks for raising it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

activatedgeek picture activatedgeek  路  3Comments

ericraffin picture ericraffin  路  3Comments

sys13 picture sys13  路  3Comments

chris-hinds picture chris-hinds  路  3Comments

pola88 picture pola88  路  3Comments