Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 8 additions & 12 deletions packages/desktop-client/src/components/util/GenericInput.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,9 @@ export function GenericInput({
return (
<Input
ref={ref}
defaultValue={value || ''}
value={value || ''}
placeholder={t('nothing')}
onEnter={onChange}
onUpdate={onChange}
onChangeValue={onChange}
/>
);
}
Expand Down Expand Up @@ -190,10 +189,9 @@ export function GenericInput({
content = (
<Input
ref={ref}
defaultValue={value || ''}
value={value || ''}
placeholder={getMonthYearFormat(dateFormat).toLowerCase()}
onEnter={onChange}
onUpdate={onChange}
onChangeValue={onChange}
/>
);
break;
Expand All @@ -202,10 +200,9 @@ export function GenericInput({
content = (
<Input
ref={ref}
defaultValue={value || ''}
value={value || ''}
placeholder="yyyy"
onEnter={onChange}
onUpdate={onChange}
onChangeValue={onChange}
/>
);
break;
Expand Down Expand Up @@ -262,10 +259,9 @@ export function GenericInput({
content = (
<Input
ref={ref}
defaultValue={value || ''}
value={value || ''}
placeholder={t('nothing')}
onEnter={onChange}
onUpdate={onChange}
onChangeValue={onChange}
/>
);
}
Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/5263.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [seabeeberry]
---

Fix bug where "has tag(s)" filter created empty tag when using Enter key
Loading