Tobiasz

Joined

110 Experience
1 Lesson Completed
0 Questions Solved

Activity

Posted in Hotwire Modal Forms Discussion

In your html data-action="turbo:before-render@document->remote-modal#hideBeforeRender turbo:before-fetch-response@document->remote-modal#hideAfterCreate"

In your stimulus controller

    hideAfterCreate(event) {
        if (event.detail['fetchResponse']['response']['status'] === 200) {
            this.modal.hide()
        }
    }