Skip to content

Commit

Permalink
garder la position verticale quand on ajoute un produit
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminpochat committed Dec 11, 2024
1 parent e68e409 commit 0bf10a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/app/src/domains/sale/views/CustomerOrderForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import { useLoaderData, useNavigate } from 'react-router-dom'
import { Sale } from '@viandeendirect/api/dist/models/Sale'

export default function CustomerOrderForm() {
window.scroll(0,0)

const SET_ITEMS_STEP = 1
const AUTHENTICATION_STEP = 2
Expand Down Expand Up @@ -64,6 +63,7 @@ export default function CustomerOrderForm() {
setOrder(updatedOrder)
setCompletedSteps(completedSteps)
setActiveStep(activeStep)
window.scrollTo(0,0)
}, [])

return <Box component="main" sx={{ flexGrow: 1, p: 3 }}>
Expand Down

0 comments on commit 0bf10a1

Please sign in to comment.