mirror of
https://github.com/flarum/framework.git
synced 2025-05-22 14:49:57 +08:00
Focus on the first input too, in case it's not a text field
This commit is contained in:
@ -89,7 +89,7 @@ export default class Modal extends Component {
|
|||||||
* Focus on the first input when the modal is ready to be used.
|
* Focus on the first input when the modal is ready to be used.
|
||||||
*/
|
*/
|
||||||
onready() {
|
onready() {
|
||||||
this.$('form :input:first').select();
|
this.$('form :input:first').focus().select();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user