Skip to content

Commit 8252014

Browse files
committed
fix(pat subform): Correctly unregister the submit event on Pattern destroy.
1 parent dc7c0ff commit 8252014

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pat/subform/subform.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default Base.extend({
2828
},
2929

3030
destroy($el) {
31-
$el.off("submit");
31+
events.remove_event_listener($el[0], "pat-subform--submit");
3232
},
3333

3434
scopedSubmit($el) {

0 commit comments

Comments
 (0)