Skip to content

Commit f8e2b7e

Browse files
authored
🐛 Fix tag rank input (#1296)
https://issues.redhat.com/browse/MTA-1195 Signed-off-by: ibolton336 <[email protected]>
1 parent 424120a commit f8e2b7e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

client/src/app/pages/controls/tags/components/tag-category-form.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,12 @@ export const TagCategoryForm: React.FC<TagCategoryFormProps> = ({
189189
onMinus={() => {
190190
onChange((value || 0) - 1);
191191
}}
192-
onChange={() => onChange}
192+
onChange={(event) => {
193+
const target = event?.target as HTMLInputElement;
194+
if (target) {
195+
onChange(target.valueAsNumber);
196+
}
197+
}}
193198
onPlus={() => {
194199
onChange((value || 0) + 1);
195200
}}

0 commit comments

Comments
 (0)