[Vuejs]-BeforeUnload listener not added or removed before element is unfocused

0đź‘Ť

âś…

Solved: This has been confirmed as a side effect of me using the “change” handler on the input fields, aka what seems to be the intended behavior of the change handler. The DOM isn’t updated before a “blur” event and this was discovered when I tried to disable the submit button through validation which resulted in the same issue. Exchanging the “change” event on the input elements for a “keyup” solved this issue.

Leave a comment