baseui 0.0.0-next-cd200bf → 0.0.0-next-1788bcc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -845,7 +845,7 @@ class Select extends React.Component {
845
845
  }
846
846
 
847
847
  filterOptions(excludeOptions) {
848
- const filterValue = this.state.inputValue; // apply filter function
848
+ const filterValue = this.state.inputValue.trim(); // apply filter function
849
849
 
850
850
  if (this.props.filterOptions) {
851
851
  this.options = this.props.filterOptions(this.options, filterValue, excludeOptions, {
@@ -992,7 +992,7 @@ var Select = /*#__PURE__*/function (_React$Component) {
992
992
  value: function filterOptions(excludeOptions) {
993
993
  var _this5 = this;
994
994
 
995
- var filterValue = this.state.inputValue; // apply filter function
995
+ var filterValue = this.state.inputValue.trim(); // apply filter function
996
996
 
997
997
  if (this.props.filterOptions) {
998
998
  this.options = this.props.filterOptions(this.options, filterValue, excludeOptions, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baseui",
3
- "version": "0.0.0-next-cd200bf",
3
+ "version": "0.0.0-next-1788bcc",
4
4
  "description": "A React Component library implementing the Base design language",
5
5
  "keywords": [
6
6
  "react",
@@ -1013,7 +1013,7 @@ var Select = /*#__PURE__*/function (_React$Component) {
1013
1013
  value: function filterOptions(excludeOptions) {
1014
1014
  var _this5 = this;
1015
1015
 
1016
- var filterValue = this.state.inputValue; // apply filter function
1016
+ var filterValue = this.state.inputValue.trim(); // apply filter function
1017
1017
 
1018
1018
  if (this.props.filterOptions) {
1019
1019
  this.options = this.props.filterOptions(this.options, filterValue, excludeOptions, {
@@ -867,7 +867,7 @@ class Select extends React.Component<PropsT, SelectStateT> {
867
867
  }
868
868
 
869
869
  filterOptions(excludeOptions: ?ValueT) {
870
- const filterValue = this.state.inputValue;
870
+ const filterValue = this.state.inputValue.trim();
871
871
  // apply filter function
872
872
  if (this.props.filterOptions) {
873
873
  this.options = this.props.filterOptions(