Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in React, moveable can't recognize new elements even if target selectors are changed #962

Open
enk0de opened this issue Jun 29, 2023 · 3 comments
Labels
bug Something isn't working complete

Comments

@enk0de
Copy link

enk0de commented Jun 29, 2023

Environments

  • Framework name: React
  • Framework version: ^18
  • Moveable Component version: latest
  • Testable Address(optional):

Description

i am using moveable with selecto.
moveable can't recognize new elements even if target selectors are changed.

i tried updateSelectors with rAF. however, starting dragging as soon as you make a selection is not working.

[link]
https://codesandbox.io/p/sandbox/youthful-hill-qnsvgj

@daybrush
Copy link
Owner

daybrush commented Jul 4, 2023

@hoondeveloper

  • croact-moveable 0.6.2
  • @moveable/helper 0.1.3
  • lit-moveable 0.27.2
  • moveable 0.50.2
  • preact-moveable 0.52.2
  • react-moveable 0.53.2
  • svelte-moveable 0.42.2
  • vue-moveable 2.0.0-beta.81
  • vue3-moveable 0.25.2
  • ngx-moveable 0.47.2

moveable's new version is released.

And remove this code:

 requestAnimationFrame(() => {
              moveableRef.current?.updateSelectors();
              moveableRef.current?.updateRect();
            });

@d2461379109
Copy link

d2461379109 commented Jul 5, 2023

  • I encountered the same problem with vue-moveable, I tried to update to Vue-Moveable2.0.0-bet.81, import vue-moveable as {}

image

image
image

@daybrush

@daybrush
Copy link
Owner

daybrush commented Jul 5, 2023

@d2461379109

How is the environment using your Moveable?

Please tell me your vue version.

Is there a codesandbox or url that I can test on?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working complete
Projects
None yet
Development

No branches or pull requests

3 participants