This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Directive, ElementRef, Input, OnDestroy, OnInit } from '@angular/core'; | |
import { Keyboard } from '@ionic-native/keyboard/ngx'; | |
import { Platform } from '@ionic/angular'; | |
import { fromEvent, Subscription } from 'rxjs'; | |
/** | |
* @source https://gist.github.com/Youness-e/5c4f49f3aaa4ee90f45b75818764114d | |
* @description | |
* The `keyboardAttach` directive will cause an element to float above the | |
* keyboard when the keyboard shows. Currently only supports the `ion-footer` element. |