Phonegap input type password field focus

前端 未结 4 876
遥遥无期
遥遥无期 2020-12-03 06:04

I developed an app in phonegap . In input tag if i give type=\'text\' it is works well . but when i give input type=\'password\' an another field is opening over to the curr

4条回答
  •  伪装坚强ぢ
    2020-12-03 06:42

    Here is an easier solution!

    Change

    to

    
    

    In your CSS style sheet(s).

    input.password-field {
         -webkit-text-security: disc;
    }
    

    http://css-infos.net/property/-webkit-text-security

    I am building a PhoneGap (cordova) ANdroid app and i spent about 18 hours so far trying to find a fix, destroying the iScroll instance kind of works if the password field is on the screen and not below the scrolling area... The webkit text security CSS property is a much better fix and i've done some research on this CSS property and it seems like all the Android versions run webkit so you should be good to go for all versions of Android with this fix!

提交回复
热议问题