How to enable page-break in a table with caption?

In writer, when I add a caption to a table, no matter the table’s settings, the table goes to next page. I want instead it to respect the text flow and just go to the next page when needed.
If I do not add the table caption I get the desired behaviour.

It sounds like you are adding the caption to the bottom of the table. Doing this checks the Keep with next paragraph option on the Text Flow tab of the table properties dialog. The related bug is fdo#34957. If you add the caption to the top of the table (which most, but not all, style guides suggest) this does not occur. Refer this alternate forum thread for details.

yes, that was. Thank you.

If the problem exists even without caption, as in my case, try inserting a “column break” in the first cell. For me it fixed the pagetop sticking tables.