Skip to content

Commit fe6f7ee

Browse files
Merge pull request #5266 from topcoder-platform/search-whitespace
Challenge listing - Fix whitespace in search field
2 parents bb557c6 + 506afb1 commit fe6f7ee

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.circleci/config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ workflows:
244244
filters:
245245
branches:
246246
only:
247-
- feature/private-spec
247+
- free
248248
# This is beta env for production soft releases
249249
- "build-prod-beta":
250250
context : org-global
@@ -260,6 +260,7 @@ workflows:
260260
branches:
261261
only:
262262
- develop
263+
- search-whitespace
263264
# Production builds are exectuted
264265
# when PR is merged to the master
265266
# Don't change anything in this configuration

src/shared/components/challenge-listing/Filters/ChallengeSearchBar/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default function ChallengeSearchBar({
3030
id="search-challenges"
3131
onInput={(e) => {
3232
const s = e.target.value;
33-
onSearch(s.trim());
33+
onSearch(s);
3434
}}
3535
placeholder={placeholder}
3636
type="text"

src/shared/containers/challenge-listing/ChallengeSearchBar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class Container extends React.Component {
2323
filterState,
2424
} = this.props;
2525

26-
setFilterState({ ..._.clone(filterState), search: text });
26+
setFilterState({ ..._.clone(filterState), search: text.trim() });
2727
}
2828

2929
render() {

0 commit comments

Comments
 (0)