1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Add focus to password field.

This commit is contained in:
Kevin Serrano 2016-10-30 14:08:14 -07:00
parent 02b0cf2e6d
commit 625c54b7ec
No known key found for this signature in database
GPG Key ID: 7CC862A58D2889B4

View File

@ -144,6 +144,10 @@ InitializeMenuScreen.prototype.createVaultOnEnter = function (event) {
} }
} }
InitializeMenuScreen.prototype.componentDidMount = function () {
document.getElementById('password-box').focus()
}
InitializeMenuScreen.prototype.createNewVault = function () { InitializeMenuScreen.prototype.createNewVault = function () {
var passwordBox = document.getElementById('password-box') var passwordBox = document.getElementById('password-box')
var password = passwordBox.value var password = passwordBox.value