Why does my table slowly recede in R Markdown when using the DT scrollResize plugin?

I ran the following code in R markdown. The table starts full size but then slowly recedes without me doing anything. Within a few seconds you can’t see any rows nor can you do anything to view them. I followed the format as shown here and there did not appear to be any additional information on the DT package website.

I’m using DT version 0.20, R version 4.1.2 and RStudio 2022.02.0+443.

    ---
    title: "scrollResize Not Working"
    output: html_document
    ---

    ```{r}

    library(DT)

    datatable(iris, plugins = "scrollResize",
          
          options = list(scrollResize = TRUE,
                         paging = FALSE,
                         scrollY = '300px',
                         scrollCollapse = TRUE))

    ```