react-zoom-pan-pinch
react-zoom-pan-pinch copied to clipboard
Input field inside transform component is not typeable.
If we put the input field inside the transform component, the field input
& textarea
is not typeable.
React: 17.0.1
<TransformComponent>
<image />
<input />
</TransformComponent>
Env
react: 17.0.1
react-zoom-pan-pinch: 2.1.3,
I am also facing the same issue, Input button and textarea is not working
Hi, I think the issue is with the click events trying to start the pan. You can simply use the excluded props to fix this.
<TransformWrapper panning={excluded: ["input"]}>
<TransformComponent>
<image />
<input />
</TransformComponent>
</TransformWrapper>
@bhsz thank you! This solved my problem.
@bhsz Thankyou