terra-form-select
Advanced tools
Comparing version 6.62.1 to 6.62.2
@@ -5,2 +5,7 @@ # Changelog | ||
## 6.62.2 - (May 24, 2024) | ||
* Fixed | ||
* Search field value now persists when navigating to another component. | ||
## 6.62.1 - (May 13, 2024) | ||
@@ -11,3 +16,2 @@ | ||
## 6.62.0 - (May 8, 2024) | ||
@@ -14,0 +18,0 @@ |
@@ -268,5 +268,6 @@ "use strict"; | ||
if (this.state.hasSearchChanged) { | ||
this.setState({ | ||
searchValue: this.props.display, | ||
hasSearchChanged: false | ||
this.setState(function (prevState) { | ||
return { | ||
searchValue: prevState.searchValue.trim() | ||
}; | ||
}); | ||
@@ -273,0 +274,0 @@ } |
{ | ||
"name": "terra-form-select", | ||
"version": "6.62.1", | ||
"version": "6.62.2", | ||
"description": "Provides a drop down of selectable options.", | ||
@@ -34,2 +34,7 @@ "author": "Cerner Corporation", | ||
], | ||
"peerDependencies": { | ||
"react": "16", | ||
"react-dom": "16", | ||
"react-intl": "^2.8.0 || 3 || 4 || 5" | ||
}, | ||
"dependencies": { | ||
@@ -42,3 +47,3 @@ "classnames": "2", | ||
"react-lifecycles-compat": "3", | ||
"terra-form-field": "^4.34.0", | ||
"terra-form-field": "^4.35.0", | ||
"terra-hookshot": "5", | ||
@@ -49,7 +54,2 @@ "terra-mixins": "^1.41.0", | ||
}, | ||
"peerDependencies": { | ||
"react": "16", | ||
"react-dom": "16", | ||
"react-intl": "^2.8.0 || 3 || 4 || 5" | ||
}, | ||
"scripts": { | ||
@@ -68,3 +68,3 @@ "compile": "babel --root-mode upward src --out-dir lib --copy-files", | ||
}, | ||
"gitHead": "3f404c33a4092f4e43dfcdbd86531727dd757b1b" | ||
"gitHead": "209e73eab65abaee39bd1e026d50e5e03d8f38ac" | ||
} |
@@ -235,6 +235,5 @@ import React from 'react'; | ||
if (this.state.hasSearchChanged) { | ||
this.setState({ | ||
searchValue: this.props.display, | ||
hasSearchChanged: false, | ||
}); | ||
this.setState((prevState) => ({ | ||
searchValue: prevState.searchValue.trim(), | ||
})); | ||
} | ||
@@ -241,0 +240,0 @@ |
1049946
Updatedterra-form-field@^4.35.0