Fix event chaining with .off()
Merge pull request #10024 from MarcelGerber/event-chaining-fix

Fix event chaining with .off()