Jungwoo-An / react-editor-js

⚛️📝The unofficial editor-js component for React
https://codesandbox.io/s/react-editor-js-v2-34bfl
MIT License
940 stars 77 forks source link

Scroll top on focusing input element #241

Closed ShebangDog closed 2 months ago

ShebangDog commented 4 months ago

Environment

https://codesandbox.io/p/sandbox/react-editor-js-v2-forked-s3wdpq

Describe

scroll to top when you touch input element.(only first time) On iPhone 13(iOS 16.2), The following steps can be used to cause a bug.

steps

  1. access page(https://codesandbox.io/p/sandbox/react-editor-js-v2-forked-s3wdpq)
  2. see preview
  3. scroll preview to input that display "placeholder" as placeholder ( Do not touch any element at this point. )
  4. touch the input element.

https://github.com/Jungwoo-An/react-editor-js/assets/38370581/96546bcd-e91c-4f2a-933f-0a73dddd8c52

ShebangDog commented 2 months ago

resolve: https://github.com/codex-team/editor.js/issues/2689