Skip to content

Commit ebfb1ba

Browse files
committed
Merge branch '1.0.1' of github.com:driftyco/ionic into 1.0.1
2 parents 5aaa94a + 78c0814 commit ebfb1ba

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

js/utils/keyboard.js

+14
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,20 @@
2727
* <div id="google-map"></div>
2828
* </div>
2929
* ```
30+
*
31+
* Note: For performance reasons, elements will not be hidden for 400ms after the start of the `native.keyboardshow` event
32+
* from the Ionic Keyboard plugin. If you would like them to disappear immediately, you could do something
33+
* like:
34+
*
35+
* ```js
36+
* window.addEventListener('native.keyboardshow', function(){
37+
* document.body.classList.add('keyboard-open');
38+
* });
39+
* ```
40+
* This adds the same `keyboard-open` class that is normally added by Ionic 400ms after the keyboard
41+
* opens. However, bear in mind that adding this class to the body immediately may cause jank in any
42+
* animations on Android that occur when the keyboard opens (for example, scrolling any obscured inputs into view).
43+
*
3044
* ----------
3145
*
3246
* ### Plugin Usage

0 commit comments

Comments
 (0)