Input focus on two position:both for Android and htmldom

I runned on Android 6.01.
when I changed input type,the key board changed from password to text.But Android’s coursor came out of input when focus.
Here’s the instance once executed.

I have no idea what you are doing and what is the actual problem. Please describe a bit more.

the code above(ionic1) on codepen was used to change the input type,so we can hide and show the input type of password .
I runned above code with ionic-cli “ioni run android -l”.when I changed input’s type the keyboard of my mobilephone,the keyboard hide.
I just want the keyboard hold when i changed input’s type,then i trigger the input’s focus in directive in order to retrieve keyboard.However when the input focus,keyboard back again,but the input get focus separate.