From cc13b97c4ee1eb3ff8f2428fb221ec12063ced15 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Wed, 5 Aug 2015 16:07:43 +0930 Subject: [PATCH] Focus on the first input too, in case it's not a text field --- framework/core/js/lib/components/Modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/js/lib/components/Modal.js b/framework/core/js/lib/components/Modal.js index f582a5673..b04863535 100644 --- a/framework/core/js/lib/components/Modal.js +++ b/framework/core/js/lib/components/Modal.js @@ -89,7 +89,7 @@ export default class Modal extends Component { * Focus on the first input when the modal is ready to be used. */ onready() { - this.$('form :input:first').select(); + this.$('form :input:first').focus().select(); } /**