0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-03-28 10:08:11 +00:00

create handler function for controlled input

Moved onChange handler function to a component method and simplified it a smidge.

Must use parseInt now because the input type will change to 'text' rather than 'number'
This commit is contained in:
Gazook89
2024-08-19 22:38:46 -05:00
parent 1196a1577f
commit a42b867bcb
2 changed files with 8 additions and 15 deletions

View File

@@ -231,10 +231,6 @@ const BrewRenderer = (props)=>{
}));
};
// const handlePageChange = (pageNumber) => {
// // Scroll to the desired page
// scrollToPage(pageNumber);
// };
return (
<>