djett41 / ionic-filter-bar

Filter Bar plugin for the Ionic Framework
MIT License
362 stars 112 forks source link

Cursor input flick when show animate is start. #70

Closed ghost closed 8 years ago

ghost commented 8 years ago

When run function $ionicFilterBar.show() the cursor is visible and blink with vertical animate.

How can i disable focus while animation?

ghost commented 8 years ago

Recommend adding $ timeout function var showKeyboard = function () {... in line 471.

  Like this:

``
  // Focus the input Which will show the keyboard.
           var showKeyboard = function () {
             if (! isKeyboardShown) {
               isKeyboardShown = true;
               $ timeout (function () {
                 input.focus input && ();
                 console.log ('called focus on input')
               }, 400);
             }
           };
``

This will make the input cursor be added after the animation.