mirror of
https://github.com/strapi/strapi.git
synced 2025-12-03 02:23:44 +00:00
Merge pull request #1527 from waful/master
Content Manager: fix react-select blowing away user input on rerender
This commit is contained in:
commit
94dce3444c
@ -141,6 +141,7 @@ class SelectMany extends React.Component {
|
||||
isLoading={this.state.isLoading}
|
||||
onMenuScrollToBottom={this.handleBottomScroll}
|
||||
onInputChange={this.handleInputChange}
|
||||
onSelectResetsInput={false}
|
||||
multi
|
||||
value={
|
||||
isNull(value) || isUndefined(value) || value.size === 0
|
||||
|
||||
@ -133,6 +133,7 @@ class SelectOne extends React.Component { // eslint-disable-line react/prefer-st
|
||||
isLoading={this.state.isLoading}
|
||||
onMenuScrollToBottom={this.handleBottomScroll}
|
||||
onInputChange={this.handleInputChange}
|
||||
onSelectResetsInput={false}
|
||||
simpleValue
|
||||
value={isNull(value) || isUndefined(value) ? null : {
|
||||
value: isFunction(value.toJS) ? value.toJS() : value,
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
"prepublishOnly": "IS_MONOREPO=true npm run build"
|
||||
},
|
||||
"devDependencies": {
|
||||
"react-select": "^1.0.0-rc.5",
|
||||
"react-select": "^1.2.1",
|
||||
"strapi-helper-plugin": "3.0.0-alpha.12.7.1"
|
||||
},
|
||||
"author": {
|
||||
@ -46,4 +46,4 @@
|
||||
"npm": ">= 5.0.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user