From b6fa0b3020ce5f979cc7fe7a6d622eeaa2bd8f79 Mon Sep 17 00:00:00 2001 From: jlukic Date: Tue, 28 Jul 2015 11:52:38 -0400 Subject: [PATCH] #2737 typo in code --- RELEASE-NOTES.md | 5 +++++ src/definitions/modules/modal.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 1d26be06d..fdf9674b6 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -1,5 +1,10 @@ ## RELEASE NOTES +### Version 2.x.x - July 23, 2015 + +-**Modal** - Fix autofocus setting in modal not working due to improper selector #2737 + + ### Version 2.0.7 - July 23, 2015 **Important Note** diff --git a/src/definitions/modules/modal.js b/src/definitions/modules/modal.js index e8e70e27d..98a6e9d48 100644 --- a/src/definitions/modules/modal.js +++ b/src/definitions/modules/modal.js @@ -565,7 +565,7 @@ $.fn.modal = function(parameters) { set: { autofocus: function() { var - $inputs = $module.fin(':input').filter(':visible'), + $inputs = $module.find(':input').filter(':visible'), $autofocus = $inputs.filter('[autofocus]'), $input = ($autofocus.length > 0) ? $autofocus.first()