mirror of
https://github.com/flarum/framework.git
synced 2024-12-13 07:03:35 +08:00
Focus on the first input too, in case it's not a text field
This commit is contained in:
parent
ab764c9bf4
commit
cc13b97c4e
|
@ -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