-
Notifications
You must be signed in to change notification settings - Fork 24
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
Set value manually #79
Comments
Should've done much more research before posting, stories' code helped a lot: <MuiDownshift
getInputProps={() => ({
value: 'default value'
})}
items={filteredItems}
inputRef={node => {
this.input = node
}}
/> |
The above method works only visually, mui-downshift doesnt see the value. Reopening. |
@shilangyu See initialSelectedItem and initialInputValue |
@cvanem <MuiDownshift
initialInputValue={'default value'}
items={filteredItems}
inputRef={node => {
this.input = node
}}
/> <MuiDownshift
initialSelectedItem={'default value'}
items={filteredItems}
inputRef={node => {
this.input = node
}}
/> |
@shilangyu It doesn't appear to be working for me either. I was able to get it working with defaultSelectedItem:
|
@techniq Is it time to update this library to downshift 3.x? It looks like it is still using 2.x. |
Sure. I'd really like to finish the rewrite to drop react-virtualize so
it's all part of the next major semver.
…On Sat, Mar 9, 2019, 4:28 PM cvanem ***@***.***> wrote:
@techniq <https://github.com/techniq> Is it time to update this library
to downshift 3.x? It looks like it is still using 2.x.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#79 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAK1RGGKF100PpNr0JsCY3nO_ZkJHZ5Bks5vVCeJgaJpZM4bm0Jt>
.
|
Downshift 2.x method did work for mui-downshift v1.4.1 |
How do I set the current value programmatically? I want to create a default value during render.
The text was updated successfully, but these errors were encountered: