Fixed: Don't convert series selection filter to lower case in state
This commit is contained in:
parent
37501094d7
commit
ca52eb76ca
|
@ -28,7 +28,7 @@ class SelectSeriesModalContent extends Component {
|
||||||
// Listeners
|
// Listeners
|
||||||
|
|
||||||
onFilterChange = ({ value }) => {
|
onFilterChange = ({ value }) => {
|
||||||
this.setState({ filter: value.toLowerCase() });
|
this.setState({ filter: value });
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -42,6 +42,7 @@ class SelectSeriesModalContent extends Component {
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
const filter = this.state.filter;
|
const filter = this.state.filter;
|
||||||
|
const filterLower = filter.toLowerCase();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ModalContent onModalClose={onModalClose}>
|
<ModalContent onModalClose={onModalClose}>
|
||||||
|
@ -68,7 +69,7 @@ class SelectSeriesModalContent extends Component {
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
items.map((item) => {
|
items.map((item) => {
|
||||||
return item.title.toLowerCase().includes(filter) ?
|
return item.title.toLowerCase().includes(filterLower) ?
|
||||||
(
|
(
|
||||||
<SelectSeriesRow
|
<SelectSeriesRow
|
||||||
key={item.id}
|
key={item.id}
|
||||||
|
|
Loading…
Reference in New Issue