From 5005e37cfbb1ecfb3ab64d381803a6b649dbb947 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 --- js/lib/components/Modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/lib/components/Modal.js b/js/lib/components/Modal.js index f582a5673..b04863535 100644 --- a/js/lib/components/Modal.js +++ b/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(); } /**