You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<Rnd
disableDragging={!isDraggable}
enableResizing={isResizable}
default={{ x: 100, y: 100 }} // Should work without default position
>
{...}
</Rnd>
Description
We should be able to set a default position without size. Also, in the README.md. default props has been describe as default: { x: number; y: number; width?: number | string; height?: number | string; };
Steps to Reproduce
Try to set a props default={{ x: 100, y: 100 }} using Typescript
Expected behavior
Should not display TS error
Actual behavior
The text was updated successfully, but these errors were encountered:
Overview of the problem
I'm using react-rnd 10.4.11
My browser is: (No browser, it is a Typescript issue)
There is a similar issue #869 for size
Reproduced project
Description
We should be able to set a default position without size. Also, in the README.md. default props has been describe as
default: { x: number; y: number; width?: number | string; height?: number | string; };
Steps to Reproduce
default={{ x: 100, y: 100 }}
using TypescriptExpected behavior
Should not display TS error
Actual behavior
The text was updated successfully, but these errors were encountered: