Fixes #5228 - has tag(s) filter now takes values when pressing Enter (#5263)

* Fixes #5228 - has tag(s) filter now takes values when typing quickly and pressing Enter

* Added release notes

* State of GenericInput now gets updated with every keystroke

---------

Co-authored-by: Seray Ciftci <seri@Mac.fritz.box>
This commit is contained in:
Ciftci
2025-07-03 18:27:04 +02:00
committed by GitHub
parent 979fa43c4a
commit 9a6afda6de
2 changed files with 14 additions and 12 deletions

View File

@@ -64,10 +64,9 @@ export function GenericInput({
return (
<Input
ref={ref}
defaultValue={value || ''}
value={value || ''}
placeholder={t('nothing')}
onEnter={onChange}
onUpdate={onChange}
onChangeValue={onChange}
/>
);
}
@@ -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;
@@ -202,10 +200,9 @@ export function GenericInput({
content = (
<Input
ref={ref}
defaultValue={value || ''}
value={value || ''}
placeholder="yyyy"
onEnter={onChange}
onUpdate={onChange}
onChangeValue={onChange}
/>
);
break;
@@ -262,10 +259,9 @@ export function GenericInput({
content = (
<Input
ref={ref}
defaultValue={value || ''}
value={value || ''}
placeholder={t('nothing')}
onEnter={onChange}
onUpdate={onChange}
onChangeValue={onChange}
/>
);
}

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [seabeeberry]
---
Fix bug where "has tag(s)" filter created empty tag when using Enter key