leptos-struct-table icon indicating copy to clipboard operation
leptos-struct-table copied to clipboard

TableContent's scroll_container should not be optional

Open otopetrik opened this issue 1 year ago • 1 comments

As it is, it silently defaults to <body>.

If the main scrollable element is not <body> (e.g. if UI is mobile like shell with a drawer), the table appears to work. But once a certain number of elements is reached, the table does not show remaining elements.

Assuming the scrollable element is <main>, using table as <TableContent scroll_container="main" ... works. Because scroll_container is optional, the default is silently used and figuring this out is needlessly complex.

(Have not tried it, but the same issue likely also appears if the table is used in a scrollable modal)

otopetrik avatar Oct 06 '24 19:10 otopetrik

I think you have a valid point there! Will do in the next version 👍

maccesch avatar Oct 07 '24 20:10 maccesch

This is released

maccesch avatar Jan 04 '25 05:01 maccesch