-
Notifications
You must be signed in to change notification settings - Fork 726
Description
I have two keyboards bind to the same search field. Keyboards are open by clicking on link. The keyboard has to be closed if user clicks outside of keyboard and/or accept button or clicks again on the link. My problem is that clicking on the link sometimes causes thath keyboard is flickering instead of beeing hidden.
Please run following fiddle on Chrome and click on keyboard A link, then click outside to hide keyboard and then click again link A. Keyboard doesn't appear.
See the code https://jsfiddle.net/aztechowski/1hwwstyt/8/.
I think the reason is that at the end of destroy method method init() is called. This caused that keyboard id recreated even I call the destroy method. I was expecting that $('#searchField').getkeyboard() will return me "undefined" after destroy but due to initialziation it returns object.
P.S. Similar behaviour you can see for example "international" from here: http://mottie.github.io/Keyboard/index.html.