Skip to content

Commit

Permalink
🐛 Fix tag rank input (konveyor#1296)
Browse files Browse the repository at this point in the history
https://issues.redhat.com/browse/MTA-1195

Signed-off-by: ibolton336 <ibolton@redhat.com>
  • Loading branch information
ibolton336 committed Aug 24, 2023
1 parent 3074557 commit cd65479
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,12 @@ export const TagCategoryForm: React.FC<TagCategoryFormProps> = ({
onMinus={() => {
onChange((value || 0) - 1);
}}
onChange={() => onChange}
onChange={(event) => {
const target = event?.target as HTMLInputElement;
if (target) {
onChange(target.valueAsNumber);
}
}}
onPlus={() => {
onChange((value || 0) + 1);
}}
Expand Down

0 comments on commit cd65479

Please sign in to comment.