I try to implement an overflow in Form react-router, that's work in a classic <div></div> but when I use <Form></Form> my overflow doesn't work. I don't find any topic who talk about that.
The context is a Remix app who use import { Form } from 'react-router'. I'm using React-Router v7.
Working example:
<div>
<div style={{ overflowY: "auto" }}>
<div>Truc</div>
<div>Truc</div>
.../...
<div>Truc</div>
</div>
</div>
Non-working example:
<Form>
<div style={{ overflowY: "auto" }}>
<div>Truc</div>
<div>Truc</div>
.../...
<div>Truc</div>
</div>
</Form>
Is it a bug, or Form cannot work with the overflow, or there is a trick for this case? All the other style work except the overflow rule.

formelement between thedivs. Can you create a running CodeSandbox demo of the code you are working with that reproduces the issue that readers could inspect live?