Issue with virtual keyboard on mobile device when focusing input

The issue is, that the keyboard disappears for a short time and appears again when focusing an input field via focus().

I’ve created two minimal plunkers. One is showing the issue and the other one the behavior expected. Simply open them on mobile chrome.
To see the issue you have to expand the preview (“Launch the preview in a separate window”)!!!

expected virtual keyboard focus behavior on mobile device

https://plnkr.co/edit/QJhD4a9t9VUe3Zdbihhe?p=preview

virtual keyboard focus issue on mobile device

https://plnkr.co/edit/j0759wCn6sghxW1fJ5VU?p=preview

Can I fix it by a special setup or is this a bug?
I suspected that this is a fast click issue but changing this setup had no effect.

Если вы создаете приложение через Framework7 cli, то там есть большой кусок кода для Cordova и клавиатуры.
Вот этот код: https://github.com/framework7io/framework7-cli/blob/26a84ac28047b684c53e41a510c8443c1761ddca/create-app/templates/common/cordova-app.js у вас есть этот код?

Cпасибо! But unfortunately it does not solve the issue.

I guess that Framework7 hooks itself into event chain/bubbling and causes a little delay in event handling.

I’ve created a third plunk that shows that there is a delay between .focus() and onfocus of round about 100ms. Without calling new Framework7() this delay is round aboud 3ms.
To see the issue you have to run the plunk on a mobile device and expand the preview (“Launch the preview in a separate window”)!!!