Skip to content

Commit

Permalink
Merge pull request #37 from msabramo/gh-35-not-rendering-with-streaml…
Browse files Browse the repository at this point in the history
…it-1.32.2

GH-35: Fix not rendering w/ Streamlit 1.32.2
  • Loading branch information
blackary authored Apr 1, 2024
2 parents da7a18a + 21363a9 commit 9155b23
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/st_keyup/frontend/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,12 @@ function onRender(event) {
input.onkeyup = onKeyUp
}

// Render with the correct height
Streamlit.setFrameHeight(73)

window.rendered = true
}
}

Streamlit.events.addEventListener(Streamlit.RENDER_EVENT, onRender)
Streamlit.setComponentReady()
// Render with the correct height
Streamlit.setFrameHeight(73)

0 comments on commit 9155b23

Please sign in to comment.