Skip to content

Commit

Permalink
Merge pull request #7562 from fjordllc/bug/fix-submit-button-on-brows…
Browse files Browse the repository at this point in the history
…er-back

ブラウザのバックボタンで戻った時にユーザー登録ボタンの状態を更新する
  • Loading branch information
komagata authored Apr 24, 2024
2 parents 206f5c8 + d3dd0e7 commit 008c1c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/agreements.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ document.addEventListener('DOMContentLoaded', () => {
element.addEventListener('click', updateSubmitButtonStateFromCheckbox)
})

updateSubmitButtonStateFromCheckbox()
window.addEventListener(`pageshow`, updateSubmitButtonStateFromCheckbox)
}
})

0 comments on commit 008c1c9

Please sign in to comment.