diff --git a/src/pat/autofocus/autofocus.js b/src/pat/autofocus/autofocus.js index 59b70cbdf..a5b62cf00 100644 --- a/src/pat/autofocus/autofocus.js +++ b/src/pat/autofocus/autofocus.js @@ -14,9 +14,9 @@ define([ init: function init($el) { this.setFocus(this.trigger); - $(document).on("pat-update", function (e, data) { - autofocus.setFocus(e.target); - }); + $(document).on("patterns-injected", function (e, data) { + autofocus.setFocus($(e.target).find(autofocus.trigger)); + }); }, setFocus: function (target) { var $all = $(target);