vaheqelyan / svelte-grid

A responsive, draggable and resizable grid layout, for Svelte. [NOT MAINTAINED]
https://svelte-grid.now.sh/
MIT License
970 stars 58 forks source link

<X> was created without expected prop 'scroller' #79

Closed frantic0 closed 3 years ago

frantic0 commented 3 years ago

Hi @vaheqelyan

started to get this warning.

What am I missing?

Best, F

vaheqelyan commented 3 years ago

oh yes, I did notice the same thing in development mode The grid expects a scroller property to do autoscrolling, by default, it refers to (document.documentElement)

frantic0 commented 3 years ago

I just noticed your auto-scroll example.

It might be useful to instruct the user to click and drag a grid item to the border of the grid container to see the desired effect.

woothu commented 3 years ago

@vaheqelyan Could you assign a default value to the prop to avoid the warning?

vaheqelyan commented 3 years ago

I hope to do it on Saturday