mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 02:37:42 +08:00
Focus on the first input too, in case it's not a text field
This commit is contained in:
parent
ca8fee4685
commit
5005e37cfb
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user