1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-22 06:39:39 +02:00

Fix height of modal during account creation steps (#418)

* Don't reopen an already open modal

* Avoid changing height of modal during wizard steps
This commit is contained in:
Rob Zolkos 2024-02-09 20:21:19 -05:00 committed by GitHub
parent df3e14a975
commit 10399df3d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 8 deletions

View file

@ -3,7 +3,8 @@ import { Controller } from "@hotwired/stimulus"
// Connects to data-controller="modal"
export default class extends Controller {
connect() {
this.element.showModal();
if (this.element.open) return
else this.element.showModal()
}
// Hide the dialog when the user clicks outside of it