moveable
moveable copied to clipboard
getElementInfo method return error value when target element set width
Environments
- Framework name: -
- Framework version: -
- Moveable Component version: 0.36.0
- Testable Address(optional): -
Description
Hello, When the target element's width property is set to a specific value, calling the getElementInfo method returns the wrong value "NaN", resulting in the overlay not being displayed correctly.
The target element that width is set:

The return value of the "getElementInfo":

Moveable display:

@Lucienrl
Test [email protected] version.
The specific situation is unknown, but a defense code has been added.
@daybrush , thank you. I just tried 0.37.0-beta.0, it looks all right. Yesterday I rolled back to v0.34.2, which works fine.
@Lucienrl
lit-moveable0.11.2moveable0.34.2preact-moveable0.36.2react-compat-moveable0.22.2react-moveable0.37.2svelte-moveable0.26.2vue-moveable2.0.0-beta.30vue3-moveable0.9.2ngx-moveable0.31.2
moveable's public version is released. Thank you :)