react-zoom-pan-pinch icon indicating copy to clipboard operation
react-zoom-pan-pinch copied to clipboard

Input field inside transform component is not typeable.

Open sudipstha08 opened this issue 3 years ago • 3 comments

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,

sudipstha08 avatar Sep 29 '21 08:09 sudipstha08

I am also facing the same issue, Input button and textarea is not working

viveksharmapoudel avatar Sep 29 '21 09:09 viveksharmapoudel

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 avatar Oct 26 '21 19:10 bhsz

@bhsz thank you! This solved my problem.

kenjim83 avatar May 02 '22 14:05 kenjim83

@bhsz Thankyou

rkvirajgupta avatar Dec 20 '23 12:12 rkvirajgupta