Skip to content

Commit edcf53b

Browse files
committed
Fix #5541
1 parent 90cb328 commit edcf53b

File tree

1 file changed

+2
-1
lines changed
  • src/shared/components/Contentful/SearchPageFilter/FilterTags

1 file changed

+2
-1
lines changed

src/shared/components/Contentful/SearchPageFilter/FilterTags/index.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,12 @@ export class FilterTagsInner extends Component {
6666
value={inputValue}
6767
onChange={(e) => { this.setState({ inputValue: e.target.value }); }}
6868
onKeyDown={(e) => {
69-
if (e.key === 'Enter' && inputValue && inputValue.trim() && !isTagExist(inputValue)) {
69+
if (e.key === 'Enter' && inputValue && inputValue.trim() && !isTagExist(inputValue) && tags.length <= 4) {
7070
onAddNewTag(inputValue);
7171
this.setState({ inputValue: '' });
7272
}
7373
}}
74+
maxLength="40"
7475
/>
7576
<div className={theme['tag-container']}>
7677
{

0 commit comments

Comments
 (0)