Minor bugfixes (#3338)

* Workaround linux firefox repeat issue

* Nullcheck onShow/onHide functions
This commit is contained in:
Prospector
2025-03-05 12:28:48 -08:00
committed by GitHub
parent ee4d7c88f1
commit 79279479b1
4 changed files with 3 additions and 7 deletions

View File

@@ -67,7 +67,7 @@ function show() {
}
function hide() {
props.onHide()
props.onHide?.()
actuallyShown.value = false
setTimeout(() => {
shown.value = false

View File

@@ -109,7 +109,7 @@ function show(event?: MouseEvent) {
}
function hide() {
props.onHide()
props.onHide?.()
visible.value = false
document.body.style.overflow = ''
document.body.style.paddingRight = ''